it.unimi.dsi.fastutil.shorts
Class ShortSets.UnmodifiableSet
java.lang.Object
it.unimi.dsi.fastutil.shorts.ShortCollections.UnmodifiableCollection
it.unimi.dsi.fastutil.shorts.ShortSets.UnmodifiableSet
- All Implemented Interfaces:
- ShortCollection, ShortIterable, ShortSet, Serializable, Iterable<Short>, Collection<Short>, Set<Short>
- Direct Known Subclasses:
- ShortSortedSets.UnmodifiableSortedSet
- Enclosing class:
- ShortSets
public static class ShortSets.UnmodifiableSet
- extends ShortCollections.UnmodifiableCollection
- implements ShortSet, Serializable
An unmodifiable wrapper class for sets.
- See Also:
- Serialized Form
Methods inherited from class it.unimi.dsi.fastutil.shorts.ShortCollections.UnmodifiableCollection |
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, shortIterator, size, toArray, toArray, toArray, toShortArray, toShortArray, toString |
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortCollection |
add, addAll, contains, containsAll, rem, removeAll, retainAll, shortIterator, toArray, toArray, toShortArray, toShortArray |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
remove
public boolean remove(short k)
- Description copied from interface:
ShortSet
- Removes an element from this set.
Note that the corresponding method of the type-specific collection is rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
- Specified by:
remove
in interface ShortSet
- See Also:
Collection.remove(Object)
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Collection<Short>
- Specified by:
equals
in interface Set<Short>
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection<Short>
- Specified by:
hashCode
in interface Set<Short>
- Overrides:
hashCode
in class Object