Package com.isode.dsapi.util
Class EntryListBooleanAttributeComparator
java.lang.Object
com.isode.dsapi.util.EntryListBooleanComparator
com.isode.dsapi.util.EntryListBooleanAttributeComparator
- All Implemented Interfaces:
Comparator<Entry>
Boolean attribute comparator for use with EntryList class
- Author:
- mst
-
Field Summary
FieldsFields inherited from class com.isode.dsapi.util.EntryListBooleanComparator
ascending
-
Constructor Summary
ConstructorsConstructorDescriptionEntryListBooleanAttributeComparator
(String attrName, boolean ascending) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
getValueBoolean
(Entry entry) Return first boolean value of associated attibute in given EntryMethods inherited from class com.isode.dsapi.util.EntryListBooleanComparator
compare
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
attrType
-
-
Constructor Details
-
EntryListBooleanAttributeComparator
public EntryListBooleanAttributeComparator(String attrName, boolean ascending) throws BadAttributeTypeException Constructor- Parameters:
attrName
- attribute nameascending
- ascending order- Throws:
BadAttributeTypeException
-
-
Method Details
-
getValueBoolean
Return first boolean value of associated attibute in given Entry- Specified by:
getValueBoolean
in classEntryListBooleanComparator
- Parameters:
entry
- source Entry
-