Class ReferenceSets.EmptySet<K>

java.lang.Object
java.util.AbstractCollection<K>
All Implemented Interfaces:
ObjectIterable<K>, ReferenceCollection<K>, ReferenceSet<K>, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<K>, java.util.Collection<K>, java.util.Set<K>
Direct Known Subclasses:
ReferenceSortedSets.EmptySet
Enclosing class:
ReferenceSets

public static class ReferenceSets.EmptySet<K>
extends ReferenceCollections.EmptyCollection<K>
implements ReferenceSet<K>, java.io.Serializable, java.lang.Cloneable
An immutable class representing the empty set and implementing a type-specific set interface.

This class may be useful to implement your own in case you subclass a type-specific set.

See Also:
Serialized Form
  • Method Details

    • remove

      public boolean remove​(java.lang.Object ok)
      Specified by:
      remove in interface java.util.Collection<K>
      Specified by:
      remove in interface java.util.Set<K>
      Overrides:
      remove in class java.util.AbstractCollection<K>
    • clone

      public java.lang.Object clone()
    • equals

      public boolean equals​(java.lang.Object o)
      Specified by:
      equals in interface java.util.Collection<K>
      Specified by:
      equals in interface java.util.Set<K>
      Overrides:
      equals in class ReferenceCollections.EmptyCollection<K>