org.openxava.util
Class KeyAndDescriptionComparator

java.lang.Object
  extended by org.openxava.util.KeyAndDescriptionComparator
All Implemented Interfaces:
java.util.Comparator

public class KeyAndDescriptionComparator
extends java.lang.Object
implements java.util.Comparator

Author:
Javier Paniza

Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
static java.util.Comparator getByDescription()
           
static java.util.Comparator getByKey()
           
 
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
 

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)

getByDescription

public static java.util.Comparator getByDescription()

getByKey

public static java.util.Comparator getByKey()