Class CacheableList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
org.deltava.util.cache.CacheableList<E>
- Type Parameters:
E- the cacheable object type
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess, SequencedCollection<E>, Cacheable, CacheableCollection<E>
A utility class to create a cacheable List.
- Since:
- 1.1
- Version:
- 11.2
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionCacheableList(Object key) Initializes the cachable List.CacheableList(Object key, Collection<E> c) Converts a Collection into a cacheable List.Copy constructor. -
Method Summary
Methods inherited from class ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
containsAll, reversed
-
Constructor Details
-
CacheableList
-
CacheableList
Converts a Collection into a cacheable List.- Parameters:
key- the cache keyc- the Collection
-
CacheableList
Copy constructor.- Parameters:
cc- the original CacheableCollection
-
-
Method Details
-
cacheKey
-
clone
Description copied from interface:CacheableCollectionCreates a copy of the collection.
-