org.apache.velocity.tools.generic
Class SortTool.PropertiesComparator

java.lang.Object
  extended by 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
static String TYPE_ASCENDING_SHORT
           
static String TYPE_DESCENDING_SHORT
           
 
Constructor Summary
SortTool.PropertiesComparator(List props)
           
 
Method Summary
 int compare(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
 

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

SortTool.PropertiesComparator

public SortTool.PropertiesComparator(List props)
Method Detail

compare

public int compare(Object lhs,
                   Object rhs)
Specified by:
compare in interface Comparator


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.