Class SortTool.PropertiesComparator
- java.lang.Object
-
- org.apache.velocity.tools.generic.SortTool.PropertiesComparator
-
- All Implemented Interfaces:
Serializable,Comparator
- Enclosing class:
- SortTool
public static class SortTool.PropertiesComparator extends Object implements Comparator, Serializable
Does all of the comparisons- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE_ASCENDING_SHORTstatic StringTYPE_DESCENDING_SHORT
-
Constructor Summary
Constructors Constructor Description PropertiesComparator(List props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object lhs, Object rhs)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
TYPE_ASCENDING_SHORT
public static final String TYPE_ASCENDING_SHORT
- See Also:
- Constant Field Values
-
TYPE_DESCENDING_SHORT
public static final String TYPE_DESCENDING_SHORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertiesComparator
public PropertiesComparator(List props)
-
-
Method Detail
-
compare
public int compare(Object lhs, Object rhs)
- Specified by:
comparein interfaceComparator
-
-