Package com.tailf.dp

Class NextObjectArrayList<E>

Object
AbstractCollection<E>
AbstractList<E>
ArrayList<E>
com.tailf.dp.NextObjectArrayList<E>
All Implemented Interfaces:
NextObjectList<E>, Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess

public class NextObjectArrayList<E> extends ArrayList<E> implements NextObjectList<E>
ArrayList-based implementation of the NextObjectList interface.
See Also:
  • Constructor Details

    • NextObjectArrayList

      public NextObjectArrayList(int initialCapacity)
    • NextObjectArrayList

      public NextObjectArrayList()
    • NextObjectArrayList

      public NextObjectArrayList(Collection<? extends E> c)
  • Method Details

    • setTimeout

      public void setTimeout(int newTimeout)
      Setter method for the value returned by the getTimeout() method.
    • getTimeout

      public int getTimeout()
      This method is used by the library to read the timeout value pertaining to the objects in this instance. I.e. it governs for how long NCS will retain the objects and read them from its cache.
      Specified by:
      getTimeout in interface NextObjectList<E>