Package it.unimi.dsi.fastutil.objects
Class ObjectSets.EmptySet<K>
- java.lang.Object
-
- java.util.AbstractCollection<K>
-
- it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
-
- it.unimi.dsi.fastutil.objects.ObjectCollections.EmptyCollection<K>
-
- it.unimi.dsi.fastutil.objects.ObjectSets.EmptySet<K>
-
- All Implemented Interfaces:
ObjectCollection<K>,ObjectIterable<K>,ObjectSet<K>,Serializable,Cloneable,Iterable<K>,Collection<K>,Set<K>
- Direct Known Subclasses:
ObjectSortedSets.EmptySet
- Enclosing class:
- ObjectSets
public static class ObjectSets.EmptySet<K> extends ObjectCollections.EmptyCollection<K> implements ObjectSet<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
-
Methods inherited from class it.unimi.dsi.fastutil.objects.ObjectCollections.EmptyCollection
addAll, clear, contains, hashCode, iterator, removeAll, retainAll, size, toArray
-
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection
toString
-
Methods inherited from class java.util.AbstractCollection
add, containsAll, isEmpty, toArray
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
remove
public boolean remove(Object ok)
- Specified by:
removein interfaceCollection<K>- Specified by:
removein interfaceSet<K>- Overrides:
removein classAbstractCollection<K>
-
clone
public Object clone()
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceCollection<K>- Specified by:
equalsin interfaceSet<K>- Overrides:
equalsin classObjectCollections.EmptyCollection<K>
-
-