ByteIterable
, MutableByteCollection
, PrimitiveIterable
, ByteSet
, MutableByteSet
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 FormConstructor | Description |
---|---|
SynchronizedByteSet(MutableByteSet set) |
|
SynchronizedByteSet(MutableByteSet set,
java.lang.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(java.lang.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,
java.lang.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, 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, toString
allSatisfy, anySatisfy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
add, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public SynchronizedByteSet(MutableByteSet set)
public SynchronizedByteSet(MutableByteSet set, java.lang.Object newLock)
public static SynchronizedByteSet of(MutableByteSet set)
public static SynchronizedByteSet of(MutableByteSet set, java.lang.Object lock)
public SynchronizedByteSet without(byte element)
without
in interface MutableByteCollection
without
in interface MutableByteSet
without
in class AbstractSynchronizedByteCollection
public SynchronizedByteSet with(byte element)
with
in interface MutableByteCollection
with
in interface MutableByteSet
with
in class AbstractSynchronizedByteCollection
public SynchronizedByteSet withAll(ByteIterable elements)
withAll
in interface MutableByteCollection
withAll
in interface MutableByteSet
withAll
in class AbstractSynchronizedByteCollection
public SynchronizedByteSet withoutAll(ByteIterable elements)
withoutAll
in interface MutableByteCollection
withoutAll
in interface MutableByteSet
withoutAll
in class AbstractSynchronizedByteCollection
public MutableByteSet select(BytePredicate predicate)
ByteIterable
select
in interface ByteIterable
select
in interface ByteSet
select
in interface MutableByteCollection
select
in interface MutableByteSet
select
in class AbstractSynchronizedByteCollection
public MutableByteSet reject(BytePredicate predicate)
ByteIterable
reject
in interface ByteIterable
reject
in interface ByteSet
reject
in interface MutableByteCollection
reject
in interface MutableByteSet
reject
in class AbstractSynchronizedByteCollection
public <V> MutableSet<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterable
collect
in interface ByteIterable
collect
in interface ByteSet
collect
in interface MutableByteCollection
collect
in interface MutableByteSet
collect
in class AbstractSynchronizedByteCollection
public boolean equals(java.lang.Object otherSet)
ByteSet
Set.equals(Object)
.public int hashCode()
ByteSet
Set.hashCode()
.public LazyByteIterable asLazy()
ByteIterable
asLazy
in interface ByteIterable
asLazy
in class AbstractSynchronizedByteCollection
public MutableByteSet asUnmodifiable()
asUnmodifiable
in interface MutableByteCollection
asUnmodifiable
in interface MutableByteSet
asUnmodifiable
in class AbstractSynchronizedByteCollection
public MutableByteSet asSynchronized()
asSynchronized
in interface MutableByteCollection
asSynchronized
in interface MutableByteSet
asSynchronized
in class AbstractSynchronizedByteCollection
public ByteSet freeze()
MutableByteSet
freeze
in interface ByteSet
freeze
in interface MutableByteSet
public ImmutableByteSet toImmutable()
MutableByteSet
toImmutable
in interface ByteSet
toImmutable
in interface MutableByteCollection
toImmutable
in interface MutableByteSet
toImmutable
in class AbstractSynchronizedByteCollection
Copyright © 2004–2017. All rights reserved.