@ThreadSafe public final class SynchronizedByteSet extends AbstractSynchronizedByteCollection implements 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 |
|---|---|
LazyByteIterable |
asLazy() |
MutableByteSet |
asSynchronized() |
MutableByteSet |
asUnmodifiable() |
<V> MutableSet<V> |
collect(ByteToObjectFunction<? extends V> function) |
boolean |
equals(Object otherSet)
Follows the same general contract as
Set.equals(Object). |
ByteSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
static SynchronizedByteSet |
of(MutableByteSet set)
This method will take a MutableByteSet and wrap it directly in a SynchronizedByteSet.
|
static SynchronizedByteSet |
of(MutableByteSet set,
Object lock)
This method will take a MutableByteSet and wrap it directly in a SynchronizedByteSet.
|
MutableByteSet |
reject(BytePredicate predicate) |
MutableByteSet |
select(BytePredicate predicate) |
ImmutableByteSet |
toImmutable()
Returns an immutable copy of this set.
|
SynchronizedByteSet |
with(byte element) |
SynchronizedByteSet |
withAll(ByteIterable elements) |
SynchronizedByteSet |
without(byte element) |
SynchronizedByteSet |
withoutAll(ByteIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, byteIterator, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringadd, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static SynchronizedByteSet of(MutableByteSet set)
public static SynchronizedByteSet of(MutableByteSet set, Object lock)
public SynchronizedByteSet without(byte element)
without in interface MutableByteCollectionwithout in interface MutableByteSetwithout in class AbstractSynchronizedByteCollectionpublic SynchronizedByteSet with(byte element)
with in interface MutableByteCollectionwith in interface MutableByteSetwith in class AbstractSynchronizedByteCollectionpublic SynchronizedByteSet withAll(ByteIterable elements)
withAll in interface MutableByteCollectionwithAll in interface MutableByteSetwithAll in class AbstractSynchronizedByteCollectionpublic SynchronizedByteSet withoutAll(ByteIterable elements)
withoutAll in interface MutableByteCollectionwithoutAll in interface MutableByteSetwithoutAll in class AbstractSynchronizedByteCollectionpublic MutableByteSet select(BytePredicate predicate)
select in interface ByteIterableselect in interface MutableByteCollectionselect in interface ByteSetselect in interface MutableByteSetselect in class AbstractSynchronizedByteCollectionpublic MutableByteSet reject(BytePredicate predicate)
reject in interface ByteIterablereject in interface MutableByteCollectionreject in interface ByteSetreject in interface MutableByteSetreject in class AbstractSynchronizedByteCollectionpublic <V> MutableSet<V> collect(ByteToObjectFunction<? extends V> function)
collect in interface ByteIterablecollect in interface MutableByteCollectioncollect in interface ByteSetcollect in interface MutableByteSetcollect in class AbstractSynchronizedByteCollectionpublic boolean equals(Object otherSet)
ByteSetSet.equals(Object).public int hashCode()
ByteSetSet.hashCode().public LazyByteIterable asLazy()
asLazy in interface ByteIterableasLazy in class AbstractSynchronizedByteCollectionpublic MutableByteSet asUnmodifiable()
asUnmodifiable in interface MutableByteCollectionasUnmodifiable in interface MutableByteSetasUnmodifiable in class AbstractSynchronizedByteCollectionpublic MutableByteSet asSynchronized()
asSynchronized in interface MutableByteCollectionasSynchronized in interface MutableByteSetasSynchronized in class AbstractSynchronizedByteCollectionpublic ByteSet freeze()
MutableByteSetfreeze in interface ByteSetfreeze in interface MutableByteSetpublic ImmutableByteSet toImmutable()
MutableByteSettoImmutable in interface MutableByteCollectiontoImmutable in interface ByteSettoImmutable in interface MutableByteSettoImmutable in class AbstractSynchronizedByteCollectionCopyright © 2004–2016. All rights reserved.