Package it.unimi.dsi.fastutil.objects
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
boolean
equals(Object o)
boolean
remove(Object ok)
-
Methods inherited from class it.unimi.dsi.fastutil.objects.ReferenceCollections.EmptyCollection
addAll, clear, contains, hashCode, iterator, removeAll, retainAll, size, toArray
-
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceCollection
toString
-
Methods inherited from class java.util.AbstractCollection
add, containsAll, isEmpty, toArray
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceSet
iterator
-
-
-
-
Method Detail
-
remove
public boolean remove(Object ok)
- Specified by:
remove
in interfaceCollection<K>
- Specified by:
remove
in interfaceSet<K>
- Overrides:
remove
in classAbstractCollection<K>
-
clone
public Object clone()
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceCollection<K>
- Specified by:
equals
in interfaceSet<K>
- Overrides:
equals
in classReferenceCollections.EmptyCollection<K>
-
-