Package com.isode.dsapi.util
Class EntryListStringAttributeComparator
java.lang.Object
com.isode.dsapi.util.EntryListStringComparator
com.isode.dsapi.util.EntryListStringAttributeComparator
- All Implemented Interfaces:
Comparator<Entry>
String attribute comparator for use with EntryList class
- Author:
- mst
-
Field Summary
FieldsFields inherited from class com.isode.dsapi.util.EntryListStringComparator
ascending, ignoreCase -
Constructor Summary
ConstructorsConstructorDescriptionEntryListStringAttributeComparator(String attrName, boolean ignoreCase, boolean ascending) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetValueString(Entry entry) Return first String value of associated attibute in given entryMethods inherited from class com.isode.dsapi.util.EntryListStringComparator
compareMethods 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
-
attrType
-
-
Constructor Details
-
EntryListStringAttributeComparator
public EntryListStringAttributeComparator(String attrName, boolean ignoreCase, boolean ascending) throws BadAttributeTypeException Constructor- Parameters:
attrName- attribute nameignoreCase- string ignore case comparisionascending- ascending order- Throws:
BadAttributeTypeException
-
-
Method Details
-
getValueString
Return first String value of associated attibute in given entry- Specified by:
getValueStringin classEntryListStringComparator- Parameters:
entry- source entry
-