Package com.isode.dsapi.util
Class EntryList
java.lang.Object
com.isode.dsapi.util.EntryList
Utility class which can be used to keep list of Entries which in comparison
to Indication can support sorting
- Author:
- mst
-
Constructor Summary
ConstructorsConstructorDescriptionEntryList
(Indication indication) Constructs a list containing the Entries of the specified Indication, in the order they are returned by the collection's iterator. -
Method Summary
Modifier and TypeMethodDescriptionget
(int index) Returns the entry at the specified position in this list.void
sort
(Comparator<Entry> comparator) Sort this list using specified comparator
-
Constructor Details
-
EntryList
Constructs a list containing the Entries of the specified Indication, in the order they are returned by the collection's iterator.- Parameters:
indication
- the Indication whose Entries are to be placed into this list- Throws:
NullPointerException
- if the specified collection is null
-
-
Method Details
-
get
Returns the entry at the specified position in this list.- Parameters:
index
- index of the element to return- Returns:
- the entry at the specified position in this list
- Throws:
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= size())
-
sort
Sort this list using specified comparator- Parameters:
comparator
- Comparator used by sorting algorithm- See Also:
-