Serializable, ByteIterable, MutableByteCollection, PrimitiveIterable, ByteSet, MutableByteSetpublic 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| Constructor | Description |
|---|---|
SynchronizedByteSet(MutableByteSet set) |
|
SynchronizedByteSet(MutableByteSet set,
Object newLock) |
| Modifier and Type | Method | Description |
|---|---|---|
LazyByteIterable |
asLazy() |
Returns a LazyByteIterable adapter wrapping the source ByteIterable.
|
MutableByteSet |
asSynchronized() |
|
MutableByteSet |
asUnmodifiable() |
|
<V> MutableSet<V> |
collect(ByteToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
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(). |
MutableByteSet |
newEmpty() |
Creates a new empty mutable version of the same Set type.
|
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) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return false for the specified predicate.
|
MutableByteSet |
select(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return true for the specified 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, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringallSatisfy, anySatisfy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedByteSet(MutableByteSet set)
public SynchronizedByteSet(MutableByteSet set, Object newLock)
public 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)
ByteIterableselect in interface ByteIterableselect in interface ByteSetselect in interface MutableByteCollectionselect in interface MutableByteSetselect in class AbstractSynchronizedByteCollectionpublic MutableByteSet reject(BytePredicate predicate)
ByteIterablereject in interface ByteIterablereject in interface ByteSetreject in interface MutableByteCollectionreject in interface MutableByteSetreject in class AbstractSynchronizedByteCollectionpublic <V> MutableSet<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterablecollect in interface ByteIterablecollect in interface ByteSetcollect in interface MutableByteCollectioncollect in interface MutableByteSetcollect in class AbstractSynchronizedByteCollectionpublic boolean equals(Object otherSet)
ByteSetSet.equals(Object).public int hashCode()
ByteSetSet.hashCode().public LazyByteIterable asLazy()
ByteIterableasLazy 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 ByteSettoImmutable in interface MutableByteCollectiontoImmutable in interface MutableByteSettoImmutable in class AbstractSynchronizedByteCollectionpublic MutableByteSet newEmpty()
MutableByteSetnewEmpty in interface MutableByteCollectionnewEmpty in interface MutableByteSetCopyright © 2004–2019. All rights reserved.