Package com.isode.dsapi.util
Class EntryListStringComparator
java.lang.Object
com.isode.dsapi.util.EntryListStringComparator
- All Implemented Interfaces:
Comparator<Entry>
- Direct Known Subclasses:
EntryListStringAttributeComparator
String comparator for use with EntryList class
- Author:
- mst
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntryListStringComparator(boolean ignoreCase, boolean ascending) Constructor -
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
-
ignoreCase
protected boolean ignoreCase -
ascending
protected boolean ascending
-
-
Constructor Details
-
EntryListStringComparator
public EntryListStringComparator(boolean ignoreCase, boolean ascending) Constructor- Parameters:
ignoreCase- string ignore case comparisonascending- ascending order
-
-
Method Details
-
getValueString
Return String 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
-