@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, toStringadd, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, asLazy, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, noneSatisfy, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static UnmodifiableBooleanSet of(MutableBooleanSet set)
public UnmodifiableBooleanSet with(boolean element)
with in interface MutableBooleanCollectionwith in interface MutableBooleanSetwith in class AbstractUnmodifiableBooleanCollectionpublic UnmodifiableBooleanSet without(boolean element)
without in interface MutableBooleanCollectionwithout in interface MutableBooleanSetwithout in class AbstractUnmodifiableBooleanCollectionpublic UnmodifiableBooleanSet withAll(BooleanIterable elements)
withAll in interface MutableBooleanCollectionwithAll in interface MutableBooleanSetwithAll in class AbstractUnmodifiableBooleanCollectionpublic UnmodifiableBooleanSet withoutAll(BooleanIterable elements)
withoutAll in interface MutableBooleanCollectionwithoutAll in interface MutableBooleanSetwithoutAll in class AbstractUnmodifiableBooleanCollectionpublic MutableBooleanSet select(BooleanPredicate predicate)
select in interface BooleanIterableselect in interface MutableBooleanCollectionselect in interface BooleanSetselect in interface MutableBooleanSetselect in class AbstractUnmodifiableBooleanCollectionpublic MutableBooleanSet reject(BooleanPredicate predicate)
reject in interface BooleanIterablereject in interface MutableBooleanCollectionreject in interface BooleanSetreject in interface MutableBooleanSetreject in class AbstractUnmodifiableBooleanCollectionpublic <V> MutableSet<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanIterablecollect in interface MutableBooleanCollectioncollect in interface BooleanSetcollect in interface MutableBooleanSetcollect in class AbstractUnmodifiableBooleanCollectionpublic boolean equals(Object otherSet)
BooleanSetSet.equals(Object).equals in interface BooleanSetequals in class Objectpublic int hashCode()
BooleanSetSet.hashCode().hashCode in interface BooleanSethashCode in class Objectpublic MutableBooleanSet asUnmodifiable()
asUnmodifiable in interface MutableBooleanCollectionasUnmodifiable in interface MutableBooleanSetasUnmodifiable in class AbstractUnmodifiableBooleanCollectionpublic MutableBooleanSet asSynchronized()
asSynchronized in interface MutableBooleanCollectionasSynchronized in interface MutableBooleanSetasSynchronized in class AbstractUnmodifiableBooleanCollectionpublic BooleanSet freeze()
MutableBooleanSetfreeze in interface BooleanSetfreeze in interface MutableBooleanSetpublic ImmutableBooleanSet toImmutable()
MutableBooleanSettoImmutable in interface MutableBooleanCollectiontoImmutable in interface BooleanSettoImmutable in interface MutableBooleanSettoImmutable in class AbstractUnmodifiableBooleanCollectionCopyright © 2004–2016. All rights reserved.