Class EntryList

java.lang.Object
com.isode.dsapi.util.EntryList

public class EntryList extends Object
Utility class which can be used to keep list of Entries which in comparison to Indication can support sorting
Author:
mst
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntryList(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 Type
    Method
    Description
    get(int index)
    Returns the entry at the specified position in this list.
    void
    sort(Comparator<Entry> comparator)
    Sort this list using specified comparator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EntryList

      public EntryList(Indication indication)
      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

      public Entry get(int index)
      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

      public void sort(Comparator<Entry> comparator)
      Sort this list using specified comparator
      Parameters:
      comparator - Comparator used by sorting algorithm
      See Also: