@NotThreadSafe public final class UnmodifiableBooleanSet extends AbstractUnmodifiableBooleanCollection implements MutableBooleanSet
Modifier and Type | Method and Description |
---|---|
MutableBooleanSet |
asSynchronized() |
MutableBooleanSet |
asUnmodifiable() |
<V> MutableSet<V> |
collect(BooleanToObjectFunction<? extends V> function) |
boolean |
equals(Object otherSet)
Follows the same general contract as
Set.equals(Object) . |
BooleanSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode() . |
static UnmodifiableBooleanSet |
of(MutableBooleanSet set)
This method will take a MutableBooleanSet and wrap it directly in a UnmodifiableBooleanSet.
|
MutableBooleanSet |
reject(BooleanPredicate predicate) |
MutableBooleanSet |
select(BooleanPredicate predicate) |
ImmutableBooleanSet |
toImmutable()
Returns an immutable copy of this set.
|
UnmodifiableBooleanSet |
with(boolean element) |
UnmodifiableBooleanSet |
withAll(BooleanIterable elements) |
UnmodifiableBooleanSet |
without(boolean element) |
UnmodifiableBooleanSet |
withoutAll(BooleanIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, booleanIterator, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toBag, toList, toSet, toString
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, retainAll, retainAll
allSatisfy, anySatisfy, asLazy, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, noneSatisfy, toArray, toBag, toList, toSet
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public static UnmodifiableBooleanSet of(MutableBooleanSet set)
public UnmodifiableBooleanSet with(boolean element)
with
in interface MutableBooleanCollection
with
in interface MutableBooleanSet
with
in class AbstractUnmodifiableBooleanCollection
public UnmodifiableBooleanSet without(boolean element)
without
in interface MutableBooleanCollection
without
in interface MutableBooleanSet
without
in class AbstractUnmodifiableBooleanCollection
public UnmodifiableBooleanSet withAll(BooleanIterable elements)
withAll
in interface MutableBooleanCollection
withAll
in interface MutableBooleanSet
withAll
in class AbstractUnmodifiableBooleanCollection
public UnmodifiableBooleanSet withoutAll(BooleanIterable elements)
withoutAll
in interface MutableBooleanCollection
withoutAll
in interface MutableBooleanSet
withoutAll
in class AbstractUnmodifiableBooleanCollection
public MutableBooleanSet select(BooleanPredicate predicate)
select
in interface BooleanIterable
select
in interface MutableBooleanCollection
select
in interface BooleanSet
select
in interface MutableBooleanSet
select
in class AbstractUnmodifiableBooleanCollection
public MutableBooleanSet reject(BooleanPredicate predicate)
reject
in interface BooleanIterable
reject
in interface MutableBooleanCollection
reject
in interface BooleanSet
reject
in interface MutableBooleanSet
reject
in class AbstractUnmodifiableBooleanCollection
public <V> MutableSet<V> collect(BooleanToObjectFunction<? extends V> function)
collect
in interface BooleanIterable
collect
in interface MutableBooleanCollection
collect
in interface BooleanSet
collect
in interface MutableBooleanSet
collect
in class AbstractUnmodifiableBooleanCollection
public boolean equals(Object otherSet)
BooleanSet
Set.equals(Object)
.equals
in interface BooleanSet
equals
in class Object
public int hashCode()
BooleanSet
Set.hashCode()
.hashCode
in interface BooleanSet
hashCode
in class Object
public MutableBooleanSet asUnmodifiable()
asUnmodifiable
in interface MutableBooleanCollection
asUnmodifiable
in interface MutableBooleanSet
asUnmodifiable
in class AbstractUnmodifiableBooleanCollection
public MutableBooleanSet asSynchronized()
asSynchronized
in interface MutableBooleanCollection
asSynchronized
in interface MutableBooleanSet
asSynchronized
in class AbstractUnmodifiableBooleanCollection
public BooleanSet freeze()
MutableBooleanSet
freeze
in interface BooleanSet
freeze
in interface MutableBooleanSet
public ImmutableBooleanSet toImmutable()
MutableBooleanSet
toImmutable
in interface MutableBooleanCollection
toImmutable
in interface BooleanSet
toImmutable
in interface MutableBooleanSet
toImmutable
in class AbstractUnmodifiableBooleanCollection
Copyright © 2004–2016. All rights reserved.