Class CachedSet<T>
java.lang.Object
com.comphenix.protocol.wrappers.collection.CachedCollection<T>
com.comphenix.protocol.wrappers.collection.CachedSet<T>
- Type Parameters:
T- - the element type.
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>
Represents a cached set. Enumeration of the set will use a cached inner list.
-
Field Summary
Fields inherited from class com.comphenix.protocol.wrappers.collection.CachedCollection
cache, delegate -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.comphenix.protocol.wrappers.collection.CachedCollection
add, addAll, clear, contains, containsAll, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
CachedSet
Construct a cached set from the given delegate.- Parameters:
delegate- - the set delegate.
-