it.unimi.dsi.fastutil.shorts
Class ShortSets.SynchronizedSet
java.lang.Object
it.unimi.dsi.fastutil.shorts.ShortCollections.SynchronizedCollection
it.unimi.dsi.fastutil.shorts.ShortSets.SynchronizedSet
- All Implemented Interfaces:
- ShortCollection, ShortIterable, ShortSet, Serializable, Iterable<Short>, Collection<Short>, Set<Short>
- Direct Known Subclasses:
- ShortSortedSets.SynchronizedSortedSet
- Enclosing class:
- ShortSets
public static class ShortSets.SynchronizedSet
- extends ShortCollections.SynchronizedCollection
- implements ShortSet, Serializable
A synchronized wrapper class for sets.
- See Also:
- Serialized Form
| Methods inherited from class it.unimi.dsi.fastutil.shorts.ShortCollections.SynchronizedCollection |
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