Package com.isode.dsapi.util
Class EntryListIntegerAttributeComparator
java.lang.Object
com.isode.dsapi.util.EntryListIntegerComparator
com.isode.dsapi.util.EntryListIntegerAttributeComparator
- All Implemented Interfaces:
Comparator<Entry>
Integer attribute comparator for use with EntryList class
- Author:
- mst
-
Field Summary
FieldsFields inherited from class com.isode.dsapi.util.EntryListIntegerComparator
ascending
-
Constructor Summary
ConstructorsConstructorDescriptionEntryListIntegerAttributeComparator
(String attrName, boolean ascending) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected Integer
getValueInteger
(Entry entry) Return first Integer value of associated attibute in given EntryMethods inherited from class com.isode.dsapi.util.EntryListIntegerComparator
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
-
EntryListIntegerAttributeComparator
public EntryListIntegerAttributeComparator(String attrName, boolean ascending) throws BadAttributeTypeException Constructor- Parameters:
attrName
- attribute nameascending
- ascending order- Throws:
BadAttributeTypeException
-
-
Method Details
-
getValueInteger
Return first Integer value of associated attibute in given Entry- Specified by:
getValueInteger
in classEntryListIntegerComparator
- Parameters:
entry
- source Entry
-