@NotThreadSafe public final class UnmodifiableByteSet extends AbstractUnmodifiableByteCollection implements MutableByteSet
Modifier and Type | Method and Description |
---|---|
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 UnmodifiableByteSet |
of(MutableByteSet set)
This method will take a MutableByteSet and wrap it directly in a UnmodifiableByteSet.
|
MutableByteSet |
reject(BytePredicate predicate) |
MutableByteSet |
select(BytePredicate predicate) |
ImmutableByteSet |
toImmutable()
Returns an immutable copy of this set.
|
UnmodifiableByteSet |
with(byte element) |
UnmodifiableByteSet |
withAll(ByteIterable elements) |
UnmodifiableByteSet |
without(byte element) |
UnmodifiableByteSet |
withoutAll(ByteIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, 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
add, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, retainAll, retainAll
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public static UnmodifiableByteSet of(MutableByteSet set)
public UnmodifiableByteSet with(byte element)
with
in interface MutableByteCollection
with
in interface MutableByteSet
with
in class AbstractUnmodifiableByteCollection
public UnmodifiableByteSet without(byte element)
without
in interface MutableByteCollection
without
in interface MutableByteSet
without
in class AbstractUnmodifiableByteCollection
public UnmodifiableByteSet withAll(ByteIterable elements)
withAll
in interface MutableByteCollection
withAll
in interface MutableByteSet
withAll
in class AbstractUnmodifiableByteCollection
public UnmodifiableByteSet withoutAll(ByteIterable elements)
withoutAll
in interface MutableByteCollection
withoutAll
in interface MutableByteSet
withoutAll
in class AbstractUnmodifiableByteCollection
public MutableByteSet select(BytePredicate predicate)
select
in interface ByteIterable
select
in interface MutableByteCollection
select
in interface ByteSet
select
in interface MutableByteSet
select
in class AbstractUnmodifiableByteCollection
public MutableByteSet reject(BytePredicate predicate)
reject
in interface ByteIterable
reject
in interface MutableByteCollection
reject
in interface ByteSet
reject
in interface MutableByteSet
reject
in class AbstractUnmodifiableByteCollection
public <V> MutableSet<V> collect(ByteToObjectFunction<? extends V> function)
collect
in interface ByteIterable
collect
in interface MutableByteCollection
collect
in interface ByteSet
collect
in interface MutableByteSet
collect
in class AbstractUnmodifiableByteCollection
public boolean equals(Object otherSet)
ByteSet
Set.equals(Object)
.public int hashCode()
ByteSet
Set.hashCode()
.public MutableByteSet asUnmodifiable()
asUnmodifiable
in interface MutableByteCollection
asUnmodifiable
in interface MutableByteSet
asUnmodifiable
in class AbstractUnmodifiableByteCollection
public MutableByteSet asSynchronized()
asSynchronized
in interface MutableByteCollection
asSynchronized
in interface MutableByteSet
asSynchronized
in class AbstractUnmodifiableByteCollection
public ByteSet freeze()
MutableByteSet
freeze
in interface ByteSet
freeze
in interface MutableByteSet
public ImmutableByteSet toImmutable()
MutableByteSet
toImmutable
in interface MutableByteCollection
toImmutable
in interface ByteSet
toImmutable
in interface MutableByteSet
toImmutable
in class AbstractUnmodifiableByteCollection
Copyright © 2004–2016. All rights reserved.