com.bea.content.manager.sort
Class PropertyChoiceComparator

java.lang.Object
  extended by com.bea.content.manager.sort.PropertyChoiceComparator
All Implemented Interfaces
Serializable, Comparator

Deprecated in 10.3. No direct replacement. This class was comparing two property choices by value. See javadoc for the com.bea.content.paging package.

@Deprecated
public class PropertyChoiceComparator
extends Object
implements Comparator, Serializable

Compares PropertyChoices in ascending order based on their value. The compare is case-insensitive.

See Also
Serialized Form

Constructor Summary
PropertyChoiceComparator()
          Deprecated  
 
Method Summary
 int compare(Object obj1, Object obj2)
          Deprecated Compares its two arguments for order.
 boolean equals(Object obj)
          Deprecated Indicates whether some other object is "equal to" this Comparator.
 int hashCode()
          Deprecated Returns a hash code value for this comparator.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyChoiceComparator

public PropertyChoiceComparator()
Deprecated 
Method Detail

compare

public int compare(Object obj1,
                   Object obj2)
Deprecated 
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Specified by:
compare in interface Comparator

equals

public boolean equals(Object obj)
Deprecated 
Indicates whether some other object is "equal to" this Comparator. This method must obey the general contract of Object.equals(Object). Additionally, this method can return true only if the specified Object is also a comparator and it imposes the same ordering as this comparator. Thus, comp1.equals(comp2) implies that sgn(comp1.compare(o1, o2))==sgn(comp2.compare(o1, o2)) for every object reference o1 and o2.

Specified by:
equals in interface Comparator
Overrides:
equals in class Object

hashCode

public int hashCode()
Deprecated 
Returns a hash code value for this comparator.

Overrides:
hashCode in class Object
Returns
The hash code.


Copyright © 2011, Oracle. All rights reserved.