Package com.avoka.core.util
Class PropertyComparatorDesc
java.lang.Object
com.avoka.core.util.PropertyComparator
com.avoka.core.util.PropertyComparatorDesc
- All Implemented Interfaces:
Comparator
- Direct Known Subclasses:
IDPropertyComparatorDesc
Provides a object property string comparator that sorts the list in descending property order.
- Since:
- 4.0.0
-
Field Summary
Fields inherited from class com.avoka.core.util.PropertyComparator
comparator, property -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new string comparator, comparing the specified object.PropertyComparatorDesc(String property) Create a new string comparator, comparing the specified object property. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
PropertyComparatorDesc
Create a new string comparator, comparing the specified object property.- Parameters:
property- the name of the property to compare
-
PropertyComparatorDesc
public PropertyComparatorDesc()Create a new string comparator, comparing the specified object.
-
-
Method Details
-
compare
Calls super with the object parameters reversed- Specified by:
comparein interfaceComparator- Overrides:
comparein classPropertyComparator- Parameters:
object1- the first object to compareobject2- the second object to compare- Returns:
- the comparison result
- See Also:
-