Package com.isode.dsapi.util
Class EntryListBooleanComparator
java.lang.Object
com.isode.dsapi.util.EntryListBooleanComparator
- All Implemented Interfaces:
Comparator<Entry>
- Direct Known Subclasses:
EntryListBooleanAttributeComparator
Boolean comparator for use with EntryList class
- Author:
- mst
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare method used by sorting algorithmprotected abstract booleangetValueBoolean(Entry entry) Return boolean value generated from source entryMethods 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
-
EntryListBooleanComparator
public EntryListBooleanComparator(boolean ascending) Constructor- Parameters:
ascending- ascending order
-
-
Method Details
-
getValueBoolean
Return boolean 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
-