public abstract class AbstractShortSet extends it.unimi.dsi.fastutil.shorts.AbstractShortCollection implements java.lang.Cloneable, ShortSet
Note that the type-specific Set interface adds a type-specific remove()
method, as it is no longer harmful for subclasses. Thus, concrete subclasses of this class
must implement remove() (the rem() implementation of this
class just delegates to remove()).
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractShortSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode()
Returns a hash code for this set.
|
abstract it.unimi.dsi.fastutil.shorts.ShortIterator |
iterator()
Returns a type-specific iterator on the elements of this set.
|
boolean |
rem(short k)
Deprecated.
Please use
remove() instead. |
boolean |
remove(short k)
Removes an element from this set.
|
add, add, addAll, addAll, contains, contains, containsAll, containsAll, remove, removeAll, removeAll, retainAll, retainAll, toArray, toShortArray, toShortArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, of, of, of, of, of, remove, spliteratoradd, addAll, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toShortArray, toShortArraypublic abstract it.unimi.dsi.fastutil.shorts.ShortIterator iterator()
ShortSetiterator in interface it.unimi.dsi.fastutil.shorts.ShortCollectioniterator in interface it.unimi.dsi.fastutil.shorts.ShortIterableiterator in interface ShortSetiterator in interface java.lang.Iterable<java.lang.Short>iterator in interface java.util.Collection<java.lang.Short>iterator in interface java.util.Set<java.lang.Short>iterator in class it.unimi.dsi.fastutil.shorts.AbstractShortCollectionpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Short>equals in interface java.util.Set<java.lang.Short>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Short>hashCode in interface java.util.Set<java.lang.Short>hashCode in class java.lang.Objectpublic boolean remove(short k)
rem() method
implemented by type-specific abstract Collection superclass.@Deprecated public boolean rem(short k)
remove() instead.This method is inherited from the type-specific collection this
type-specific set is based on, but it should not used as
this interface reinstates remove() as removal method.
Delegates to the type-specific remove() method
specified in the type-specific Set interface.