Package it.unimi.dsi.fastutil.ints
Class IntSets.SynchronizedSet
java.lang.Object
it.unimi.dsi.fastutil.ints.IntSets.SynchronizedSet
- All Implemented Interfaces:
it.unimi.dsi.fastutil.ints.IntCollection,it.unimi.dsi.fastutil.ints.IntIterable,IntSet,Serializable,Iterable<Integer>,Collection<Integer>,Set<Integer>
- Direct Known Subclasses:
IntSortedSets.SynchronizedSortedSet
- Enclosing class:
IntSets
A synchronized wrapper class for sets.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.ints.IntCollectionprotected final Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(int arg0) booleanDeprecated.booleanaddAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) booleanaddAll(Collection<? extends Integer> arg0) voidclear()booleancontains(int arg0) booleanDeprecated.booleancontainsAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) booleancontainsAll(Collection<?> arg0) booleanvoidforEach(IntConsumer arg0) inthashCode()it.unimi.dsi.fastutil.ints.IntIteratorit.unimi.dsi.fastutil.ints.IntSpliteratorbooleanisEmpty()it.unimi.dsi.fastutil.ints.IntIteratoriterator()Deprecated.booleanrem(int k) Deprecated.booleanremove(int k) Removes an element from this set.booleanDeprecated.booleanremoveAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) booleanremoveAll(Collection<?> arg0) booleanremoveIf(IntPredicate arg0) booleanretainAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) booleanretainAll(Collection<?> arg0) intsize()it.unimi.dsi.fastutil.ints.IntSpliteratorstream()Deprecated.Object[]toArray()int[]toArray(int[] arg0) <T> T[]toArray(T[] arg0) int[]int[]toIntArray(int[] 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 it.unimi.dsi.fastutil.ints.IntCollection
add, addAll, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toIntArray, toIntArrayMethods inherited from interface it.unimi.dsi.fastutil.ints.IntIterable
forEach, forEach, forEach
-
Field Details
-
collection
protected final it.unimi.dsi.fastutil.ints.IntCollection collection -
sync
-
-
Constructor Details
-
SynchronizedSet
-
SynchronizedSet
-
-
Method Details
-
remove
public boolean remove(int k) Description copied from interface:IntSetRemoves an element from this set. -
rem
Deprecated.Description copied from interface:IntSetRemoves 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(int arg0) - Specified by:
addin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
contains
public boolean contains(int arg0) - Specified by:
containsin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
size
public int size()- Specified by:
sizein interfaceCollection<Integer>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Integer>
-
toIntArray
public int[] toIntArray()- Specified by:
toIntArrayin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
toArray
- Specified by:
toArrayin interfaceCollection<Integer>
-
toIntArray
Deprecated.- Specified by:
toIntArrayin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
toArray
public int[] toArray(int[] arg0) - Specified by:
toArrayin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) - Specified by:
addAllin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
add
Deprecated.- Specified by:
addin interfaceCollection<Integer>- Specified by:
addin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
contains
Deprecated.- Specified by:
containsin interfaceCollection<Integer>- Specified by:
containsin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
remove
Deprecated.- Specified by:
removein interfaceCollection<Integer>- Specified by:
removein interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
intIterator
public it.unimi.dsi.fastutil.ints.IntIterator intIterator()- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.ints.IntCollection- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.ints.IntIterable
-
intSpliterator
public it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.ints.IntCollection- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.ints.IntIterable
-
intStream
- Specified by:
intStreamin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
intParallelStream
- Specified by:
intParallelStreamin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<Integer>
-
iterator
public it.unimi.dsi.fastutil.ints.IntIterator iterator() -
spliterator
public it.unimi.dsi.fastutil.ints.IntSpliterator spliterator()- Specified by:
spliteratorin interfaceCollection<Integer>- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.ints.IntCollection- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.ints.IntIterable- Specified by:
spliteratorin interfaceIterable<Integer>
-
stream
Deprecated.- Specified by:
streamin interfaceCollection<Integer>- Specified by:
streamin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
parallelStream
Deprecated.- Specified by:
parallelStreamin interfaceCollection<Integer>- Specified by:
parallelStreamin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
forEach
- Specified by:
forEachin interfaceit.unimi.dsi.fastutil.ints.IntIterable
-
addAll
- Specified by:
addAllin interfaceCollection<Integer>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Integer>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Integer>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Integer>
-
removeIf
- Specified by:
removeIfin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Integer>
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Integer>- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceCollection<Integer>- Overrides:
equalsin classObject
-