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>,java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<K>,java.util.Collection<K>,java.util.Set<K>
- Direct Known Subclasses:
ObjectSortedSets.EmptySet
- Enclosing class:
- ObjectSets
public static class ObjectSets.EmptySet<K> extends ObjectCollections.EmptyCollection<K> implements ObjectSet<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 Summary
Methods inherited from class it.unimi.dsi.fastutil.objects.ObjectCollections.EmptyCollection
addAll, clear, contains, containsAll, forEach, hashCode, iterator, removeAll, removeIf, retainAll, size, spliterator, toArray, toArrayMethods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection
toStringMethods inherited from class java.util.AbstractCollection
add, isEmptyMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.lang.Iterable
forEachMethods inherited from interface it.unimi.dsi.fastutil.objects.ObjectSet
iterator, spliteratorMethods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArray
-
Method Details
-
remove
public boolean remove(java.lang.Object ok) -
clone
public java.lang.Object clone() -
equals
public boolean equals(java.lang.Object o)- Specified by:
equalsin interfacejava.util.Collection<K>- Specified by:
equalsin interfacejava.util.Set<K>- Overrides:
equalsin classObjectCollections.EmptyCollection<K>
-