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>

public class CachedSet<T> extends CachedCollection<T> implements Set<T>
Represents a cached set. Enumeration of the set will use a cached inner list.
  • Constructor Details

    • CachedSet

      public CachedSet(Set<T> delegate)
      Construct a cached set from the given delegate.
      Parameters:
      delegate - - the set delegate.