com.bea.content.manager.sort
Class PropertyComparator

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

Deprecated in 10.3. No direct replacement. This class was comparing two object properties by name which can be done by using the INodeManager API in conjunction with ContentContext and ContextKey. Also see javadoc for the com.bea.content.paging package.

@Deprecated
public class PropertyComparator
extends Object
implements Comparator, Serializable

Compares Properties in ascending order based on the Property name. The compare is case-insensitive.

See Also
Serialized Form

Constructor Summary
PropertyComparator()
          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

PropertyComparator

public PropertyComparator()
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.