Class ReferenceSets.EmptySet<K>
java.lang.Object
java.util.AbstractCollection<K>
it.unimi.dsi.fastutil.objects.AbstractReferenceCollection<K>
it.unimi.dsi.fastutil.objects.ReferenceCollections.EmptyCollection<K>
it.unimi.dsi.fastutil.objects.ReferenceSets.EmptySet<K>
- All Implemented Interfaces:
ObjectIterable<K>, ReferenceCollection<K>, ReferenceSet<K>, Serializable, Cloneable, Iterable<K>, Collection<K>, Set<K>
- Direct Known Subclasses:
ReferenceSortedSets.EmptySet
- Enclosing class:
ReferenceSets
public static class ReferenceSets.EmptySet<K>
extends ReferenceCollections.EmptyCollection<K>
implements ReferenceSet<K>, Serializable, 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:
-
Method Summary
Methods inherited from class ReferenceCollections.EmptyCollection
addAll, clear, contains, containsAll, forEach, hashCode, iterator, removeAll, removeIf, retainAll, size, spliterator, toArray, toArrayMethods inherited from class AbstractReferenceCollection
toStringMethods inherited from class AbstractCollection
add, isEmptyMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface ReferenceSet
iterator, spliterator
-
Method Details
-
remove
- Specified by:
removein interfaceCollection<K>- Specified by:
removein interfaceSet<K>- Overrides:
removein classAbstractCollection<K>
-
clone
-
equals
- Specified by:
equalsin interfaceCollection<K>- Specified by:
equalsin interfaceSet<K>- Overrides:
equalsin classReferenceCollections.EmptyCollection<K>
-