org.apache.velocity.tools.generic
Class SortTool.PropertiesComparator
java.lang.Object
org.apache.velocity.tools.generic.SortTool.PropertiesComparator
- All Implemented Interfaces:
- java.util.Comparator
- Enclosing class:
- SortTool
public class SortTool.PropertiesComparator
- extends java.lang.Object
- implements java.util.Comparator
Does all of the comparisons
Method Summary |
int |
compare(java.lang.Object lhs,
java.lang.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 |
TYPE_ASCENDING
private static final int TYPE_ASCENDING
- See Also:
- Constant Field Values
TYPE_DESCENDING
private static final int TYPE_DESCENDING
- See Also:
- Constant Field Values
TYPE_ASCENDING_SHORT
public static final java.lang.String TYPE_ASCENDING_SHORT
- See Also:
- Constant Field Values
TYPE_DESCENDING_SHORT
public static final java.lang.String TYPE_DESCENDING_SHORT
- See Also:
- Constant Field Values
properties
java.util.List properties
sortTypes
int[] sortTypes
SortTool.PropertiesComparator
public SortTool.PropertiesComparator(java.util.List properties)
compare
public int compare(java.lang.Object lhs,
java.lang.Object rhs)
- Specified by:
compare
in interface java.util.Comparator
Copyright (c) 2003-2007 Apache Software Foundation