Class RestrictedCollections.RestrictedSet

All Implemented Interfaces:
Serializable, Iterable, Collection, Set
Direct Known Subclasses:
RestrictedCollections.RestrictedSortedSet
Enclosing class:
RestrictedCollections

public static class RestrictedCollections.RestrictedSet extends RestrictedCollections.RestrictedCollection implements Set, Serializable
A restricted Set that requires its contents to be of a specified class.
See Also:
  • Constructor Details

    • RestrictedSet

      public RestrictedSet(Set set, Class clz)
      Constructor.
      Parameters:
      set - the underlying Set
      clz - the class of objects that may be stored in the Set