@ThreadSafe public final class SynchronizedByteSet extends AbstractSynchronizedByteCollection implements com.gs.collections.api.set.primitive.MutableByteSet
MutableByteSet. It is imperative that the user manually synchronize on the collection when iterating over it using the
ByteIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveSet.stg.
MutableByteSet.asSynchronized(),
MutableSet.asSynchronized(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.LazyByteIterable |
asLazy() |
com.gs.collections.api.set.primitive.MutableByteSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableByteSet |
asUnmodifiable() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function) |
boolean |
equals(java.lang.Object otherSet)
Follows the same general contract as
Set.equals(Object). |
com.gs.collections.api.set.primitive.ByteSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
static SynchronizedByteSet |
of(com.gs.collections.api.set.primitive.MutableByteSet set)
This method will take a MutableByteSet and wrap it directly in a SynchronizedByteSet.
|
static SynchronizedByteSet |
of(com.gs.collections.api.set.primitive.MutableByteSet set,
java.lang.Object lock)
This method will take a MutableByteSet and wrap it directly in a SynchronizedByteSet.
|
com.gs.collections.api.set.primitive.MutableByteSet |
reject(com.gs.collections.api.block.predicate.primitive.BytePredicate predicate) |
com.gs.collections.api.set.primitive.MutableByteSet |
select(com.gs.collections.api.block.predicate.primitive.BytePredicate predicate) |
com.gs.collections.api.set.primitive.ImmutableByteSet |
toImmutable()
Returns an immutable copy of this set.
|
SynchronizedByteSet |
with(byte element) |
SynchronizedByteSet |
withAll(com.gs.collections.api.ByteIterable elements) |
SynchronizedByteSet |
without(byte element) |
SynchronizedByteSet |
withoutAll(com.gs.collections.api.ByteIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, byteIterator, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, getByteCollection, getLock, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAllallSatisfy, anySatisfy, average, byteIterator, contains, containsAll, containsAll, count, detectIfNone, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic static SynchronizedByteSet of(com.gs.collections.api.set.primitive.MutableByteSet set)
public static SynchronizedByteSet of(com.gs.collections.api.set.primitive.MutableByteSet set, java.lang.Object lock)
public SynchronizedByteSet without(byte element)
without in interface com.gs.collections.api.collection.primitive.MutableByteCollectionwithout in interface com.gs.collections.api.set.primitive.MutableByteSetwithout in class AbstractSynchronizedByteCollectionpublic SynchronizedByteSet with(byte element)
with in interface com.gs.collections.api.collection.primitive.MutableByteCollectionwith in interface com.gs.collections.api.set.primitive.MutableByteSetwith in class AbstractSynchronizedByteCollectionpublic SynchronizedByteSet withAll(com.gs.collections.api.ByteIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableByteCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableByteSetwithAll in class AbstractSynchronizedByteCollectionpublic SynchronizedByteSet withoutAll(com.gs.collections.api.ByteIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableByteCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableByteSetwithoutAll in class AbstractSynchronizedByteCollectionpublic com.gs.collections.api.set.primitive.MutableByteSet select(com.gs.collections.api.block.predicate.primitive.BytePredicate predicate)
select in interface com.gs.collections.api.ByteIterableselect in interface com.gs.collections.api.collection.primitive.MutableByteCollectionselect in interface com.gs.collections.api.set.primitive.ByteSetselect in interface com.gs.collections.api.set.primitive.MutableByteSetselect in class AbstractSynchronizedByteCollectionpublic com.gs.collections.api.set.primitive.MutableByteSet reject(com.gs.collections.api.block.predicate.primitive.BytePredicate predicate)
reject in interface com.gs.collections.api.ByteIterablereject in interface com.gs.collections.api.collection.primitive.MutableByteCollectionreject in interface com.gs.collections.api.set.primitive.ByteSetreject in interface com.gs.collections.api.set.primitive.MutableByteSetreject in class AbstractSynchronizedByteCollectionpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.ByteIterablecollect in interface com.gs.collections.api.collection.primitive.MutableByteCollectioncollect in interface com.gs.collections.api.set.primitive.ByteSetcollect in interface com.gs.collections.api.set.primitive.MutableByteSetcollect in class AbstractSynchronizedByteCollectionpublic boolean equals(java.lang.Object otherSet)
com.gs.collections.api.set.primitive.ByteSetSet.equals(Object).equals in interface com.gs.collections.api.set.primitive.ByteSetequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.set.primitive.ByteSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.ByteSethashCode in class java.lang.Objectpublic com.gs.collections.api.LazyByteIterable asLazy()
asLazy in interface com.gs.collections.api.ByteIterableasLazy in class AbstractSynchronizedByteCollectionpublic com.gs.collections.api.set.primitive.MutableByteSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableByteCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableByteSetasUnmodifiable in class AbstractSynchronizedByteCollectionpublic com.gs.collections.api.set.primitive.MutableByteSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableByteCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableByteSetasSynchronized in class AbstractSynchronizedByteCollectionpublic com.gs.collections.api.set.primitive.ByteSet freeze()
com.gs.collections.api.set.primitive.MutableByteSetfreeze in interface com.gs.collections.api.set.primitive.ByteSetfreeze in interface com.gs.collections.api.set.primitive.MutableByteSetpublic com.gs.collections.api.set.primitive.ImmutableByteSet toImmutable()
com.gs.collections.api.set.primitive.MutableByteSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableByteCollectiontoImmutable in interface com.gs.collections.api.set.primitive.ByteSettoImmutable in interface com.gs.collections.api.set.primitive.MutableByteSettoImmutable in class AbstractSynchronizedByteCollection