Package it.unimi.dsi.fastutil.bytes
Class ByteSets.SynchronizedSet
java.lang.Object
it.unimi.dsi.fastutil.bytes.ByteSets.SynchronizedSet
- All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.ByteCollection,it.unimi.dsi.fastutil.bytes.ByteIterable,ByteSet,Serializable,Iterable<Byte>,Collection<Byte>,Set<Byte>
- Direct Known Subclasses:
ByteSortedSets.SynchronizedSortedSet
- Enclosing class:
ByteSets
A synchronized wrapper class for sets.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.bytes.ByteCollectionprotected final Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(byte arg0) booleanDeprecated.booleanaddAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) booleanaddAll(Collection<? extends Byte> arg0) voidclear()booleancontains(byte arg0) booleanDeprecated.booleancontainsAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) booleancontainsAll(Collection<?> arg0) booleanvoidforEach(it.unimi.dsi.fastutil.bytes.ByteConsumer arg0) inthashCode()it.unimi.dsi.fastutil.ints.IntIteratorit.unimi.dsi.fastutil.ints.IntSpliteratorbooleanisEmpty()it.unimi.dsi.fastutil.bytes.ByteIteratoriterator()Deprecated.booleanrem(byte k) Deprecated.booleanremove(byte k) Removes an element from this set.booleanDeprecated.booleanremoveAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) booleanremoveAll(Collection<?> arg0) booleanremoveIf(it.unimi.dsi.fastutil.bytes.BytePredicate arg0) booleanretainAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) booleanretainAll(Collection<?> arg0) intsize()it.unimi.dsi.fastutil.bytes.ByteSpliteratorstream()Deprecated.Object[]toArray()byte[]toArray(byte[] arg0) <T> T[]toArray(T[] arg0) byte[]byte[]toByteArray(byte[] arg0) Deprecated.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection
add, addAll, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toByteArray, toByteArrayMethods inherited from interface it.unimi.dsi.fastutil.bytes.ByteIterable
forEach, forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.bytes.ByteSet
add, contains, iterator, remove, spliteratorMethods inherited from interface java.util.Collection
toArray
-
Field Details
-
collection
protected final it.unimi.dsi.fastutil.bytes.ByteCollection collection -
sync
-
-
Constructor Details
-
SynchronizedSet
-
SynchronizedSet
-
-
Method Details
-
remove
public boolean remove(byte k) Description copied from interface:ByteSetRemoves an element from this set. -
rem
Deprecated.Description copied from interface:ByteSetRemoves 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(byte arg0) - Specified by:
addin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
contains
public boolean contains(byte arg0) - Specified by:
containsin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
size
public int size()- Specified by:
sizein interfaceCollection<Byte>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Byte>
-
toByteArray
public byte[] toByteArray()- Specified by:
toByteArrayin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
toArray
- Specified by:
toArrayin interfaceCollection<Byte>
-
toByteArray
Deprecated.- Specified by:
toByteArrayin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
toArray
public byte[] toArray(byte[] arg0) - Specified by:
toArrayin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) - Specified by:
addAllin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
add
Deprecated.- Specified by:
addin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
addin interfaceCollection<Byte>
-
contains
Deprecated.- Specified by:
containsin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
containsin interfaceCollection<Byte>
-
remove
Deprecated.- Specified by:
removein interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
removein interfaceCollection<Byte>
-
intIterator
public it.unimi.dsi.fastutil.ints.IntIterator intIterator()- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteIterable
-
intSpliterator
public it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteIterable
-
intStream
- Specified by:
intStreamin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
intParallelStream
- Specified by:
intParallelStreamin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<Byte>
-
iterator
public it.unimi.dsi.fastutil.bytes.ByteIterator iterator() -
spliterator
public it.unimi.dsi.fastutil.bytes.ByteSpliterator spliterator()- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteIterable- Specified by:
spliteratorin interfaceCollection<Byte>- Specified by:
spliteratorin interfaceIterable<Byte>
-
stream
Deprecated.- Specified by:
streamin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
streamin interfaceCollection<Byte>
-
parallelStream
Deprecated.- Specified by:
parallelStreamin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
parallelStreamin interfaceCollection<Byte>
-
forEach
public void forEach(it.unimi.dsi.fastutil.bytes.ByteConsumer arg0) - Specified by:
forEachin interfaceit.unimi.dsi.fastutil.bytes.ByteIterable
-
addAll
- Specified by:
addAllin interfaceCollection<Byte>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Byte>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Byte>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Byte>
-
removeIf
public boolean removeIf(it.unimi.dsi.fastutil.bytes.BytePredicate arg0) - Specified by:
removeIfin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Byte>
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Byte>- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceCollection<Byte>- Overrides:
equalsin classObject
-