Package it.unimi.dsi.fastutil.shorts
Class ShortSets.SynchronizedSet
java.lang.Object
it.unimi.dsi.fastutil.shorts.ShortSets.SynchronizedSet
- All Implemented Interfaces:
it.unimi.dsi.fastutil.shorts.ShortCollection,it.unimi.dsi.fastutil.shorts.ShortIterable,ShortSet,Serializable,Iterable<Short>,Collection<Short>,Set<Short>
- Direct Known Subclasses:
ShortSortedSets.SynchronizedSortedSet
- Enclosing class:
ShortSets
A synchronized wrapper class for sets.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.shorts.ShortCollectionprotected final Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(short arg0) booleanDeprecated.booleanaddAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) booleanaddAll(Collection<? extends Short> arg0) voidclear()booleancontains(short arg0) booleanDeprecated.booleancontainsAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) booleancontainsAll(Collection<?> arg0) booleanvoidforEach(it.unimi.dsi.fastutil.shorts.ShortConsumer arg0) inthashCode()it.unimi.dsi.fastutil.ints.IntIteratorit.unimi.dsi.fastutil.ints.IntSpliteratorbooleanisEmpty()it.unimi.dsi.fastutil.shorts.ShortIteratoriterator()Deprecated.booleanrem(short k) Deprecated.booleanremove(short k) Removes an element from this set.booleanDeprecated.booleanremoveAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) booleanremoveAll(Collection<?> arg0) booleanremoveIf(it.unimi.dsi.fastutil.shorts.ShortPredicate arg0) booleanretainAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) booleanretainAll(Collection<?> arg0) intsize()it.unimi.dsi.fastutil.shorts.ShortSpliteratorstream()Deprecated.Object[]toArray()short[]toArray(short[] arg0) <T> T[]toArray(T[] arg0) short[]short[]toShortArray(short[] arg0) Deprecated.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
toArrayMethods inherited from interface java.util.Set
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface it.unimi.dsi.fastutil.shorts.ShortCollection
add, addAll, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toShortArray, toShortArrayMethods inherited from interface it.unimi.dsi.fastutil.shorts.ShortIterable
forEach, forEach, forEach
-
Field Details
-
collection
protected final it.unimi.dsi.fastutil.shorts.ShortCollection collection -
sync
-
-
Constructor Details
-
SynchronizedSet
-
SynchronizedSet
-
-
Method Details
-
remove
public boolean remove(short k) Description copied from interface:ShortSetRemoves an element from this set. -
rem
Deprecated.Description copied from interface:ShortSetRemoves an element from this set.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. -
add
public boolean add(short arg0) - Specified by:
addin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
contains
public boolean contains(short arg0) - Specified by:
containsin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
size
public int size()- Specified by:
sizein interfaceCollection<Short>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Short>
-
toShortArray
public short[] toShortArray()- Specified by:
toShortArrayin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
toArray
- Specified by:
toArrayin interfaceCollection<Short>
-
toShortArray
Deprecated.- Specified by:
toShortArrayin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
toArray
public short[] toArray(short[] arg0) - Specified by:
toArrayin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) - Specified by:
addAllin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
add
Deprecated.- Specified by:
addin interfaceCollection<Short>- Specified by:
addin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
contains
Deprecated.- Specified by:
containsin interfaceCollection<Short>- Specified by:
containsin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
remove
Deprecated.- Specified by:
removein interfaceCollection<Short>- Specified by:
removein interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
intIterator
public it.unimi.dsi.fastutil.ints.IntIterator intIterator()- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.shorts.ShortIterable
-
intSpliterator
public it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.shorts.ShortIterable
-
intStream
- Specified by:
intStreamin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
intParallelStream
- Specified by:
intParallelStreamin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<Short>
-
iterator
public it.unimi.dsi.fastutil.shorts.ShortIterator iterator() -
spliterator
public it.unimi.dsi.fastutil.shorts.ShortSpliterator spliterator()- Specified by:
spliteratorin interfaceCollection<Short>- Specified by:
spliteratorin interfaceIterable<Short>- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.shorts.ShortIterable
-
stream
Deprecated.- Specified by:
streamin interfaceCollection<Short>- Specified by:
streamin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
parallelStream
Deprecated.- Specified by:
parallelStreamin interfaceCollection<Short>- Specified by:
parallelStreamin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
forEach
public void forEach(it.unimi.dsi.fastutil.shorts.ShortConsumer arg0) - Specified by:
forEachin interfaceit.unimi.dsi.fastutil.shorts.ShortIterable
-
addAll
- Specified by:
addAllin interfaceCollection<Short>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Short>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Short>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Short>
-
removeIf
public boolean removeIf(it.unimi.dsi.fastutil.shorts.ShortPredicate arg0) - Specified by:
removeIfin interfaceit.unimi.dsi.fastutil.shorts.ShortCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Short>
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Short>- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceCollection<Short>- Overrides:
equalsin classObject
-