org.opengts.util
Class ListTools.NumberComparator<T>
java.lang.Object
org.opengts.util.ListTools.NumberComparator<T>
- All Implemented Interfaces:
- java.util.Comparator<T>
- Enclosing class:
- ListTools
public static class ListTools.NumberComparator<T>
- extends java.lang.Object
- implements java.util.Comparator<T>
NumberComparator class for sorting objects based on their numeric value
Method Summary |
int |
compare(T o1,
T o2)
|
boolean |
equals(java.lang.Object other)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListTools.NumberComparator
public ListTools.NumberComparator()
ListTools.NumberComparator
public ListTools.NumberComparator(boolean ascending)
ListTools.NumberComparator
public ListTools.NumberComparator(boolean ascending,
boolean ignoreCaseIfString)
compare
public int compare(T o1,
T o2)
- Specified by:
compare
in interface java.util.Comparator<T>
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals
in interface java.util.Comparator<T>
- Overrides:
equals
in class java.lang.Object