Class CacheableSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<E>
java.util.LinkedHashSet<E>
org.deltava.util.cache.CacheableSet<E>
- Type Parameters:
E- the cacheable object type
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, SequencedCollection<E>, SequencedSet<E>, Set<E>, Cacheable, CacheableCollection<E>
A utility class to create a cacheable Set.
- Since:
- 1.0
- Version:
- 7.2
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LinkedHashSet
addFirst, addLast, getFirst, getLast, newLinkedHashSet, removeFirst, removeLast, reversed, spliteratorMethods inherited from class HashSet
add, clear, contains, isEmpty, iterator, newHashSet, remove, size, toArray, toArrayMethods inherited from class AbstractSet
equals, hashCode, removeAllMethods inherited from class AbstractCollection
addAll, containsAll, retainAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
CacheableSet
-
CacheableSet
Copy constructor.- Parameters:
cc- the original CacheableCollection
-
-
Method Details
-
cacheKey
-
clone
Description copied from interface:CacheableCollectionCreates a copy of the collection.
-