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
ArrayList-based implementation of the NextObjectList interface.
- See Also:
-
Constructor Summary
ConstructorDescriptionNextObjectArrayList
(int initialCapacity) NextObjectArrayList
(Collection<? extends E> c) -
Method Summary
Modifier and TypeMethodDescriptionint
This method is used by the library to read the timeout value pertaining to the objects in this instance.void
setTimeout
(int newTimeout) Setter method for the value returned by the getTimeout() method.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
NextObjectArrayList
public NextObjectArrayList(int initialCapacity) -
NextObjectArrayList
public NextObjectArrayList() -
NextObjectArrayList
-
-
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 interfaceNextObjectList<E>
-