Package com.isode.dsapi.util
Class EntryListIntegerComparator
java.lang.Object
com.isode.dsapi.util.EntryListIntegerComparator
- All Implemented Interfaces:
Comparator<Entry>
- Direct Known Subclasses:
EntryListIntegerAttributeComparator
Integer comparator for use with EntryList class
- Author:
- mst
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
ascending
protected boolean ascending
-
-
Constructor Details
-
EntryListIntegerComparator
public EntryListIntegerComparator(boolean ascending) Constructor- Parameters:
ascending- ascending order
-
-
Method Details
-
getValueInteger
Return Integer value generated from source entry- Parameters:
entry- source entry
-
compare
compare method used by sorting algorithm- Specified by:
comparein interfaceComparator<Entry>- Parameters:
e1- first entry to comparee2- second entry to compare
-