Serializable, BooleanIterable, MutableBooleanCollection, PrimitiveIterable, BooleanSet, MutableBooleanSetpublic class UnmodifiableBooleanSet extends AbstractUnmodifiableBooleanCollection implements MutableBooleanSet
| Constructor | Description |
|---|---|
UnmodifiableBooleanSet(MutableBooleanSet set) |
| Modifier and Type | Method | Description |
|---|---|---|
MutableBooleanSet |
asSynchronized() |
|
MutableBooleanSet |
asUnmodifiable() |
|
<V> MutableSet<V> |
collect(BooleanToObjectFunction<? 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). |
BooleanSet |
freeze() |
Returns a frozen copy of this set.
|
int |
hashCode() |
Follows the same general contract as
Set.hashCode(). |
MutableBooleanSet |
newEmpty() |
Creates a new empty mutable version of the same Set type.
|
static UnmodifiableBooleanSet |
of(MutableBooleanSet set) |
This method will take a MutableBooleanSet and wrap it directly in a UnmodifiableBooleanSet.
|
MutableBooleanSet |
reject(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
MutableBooleanSet |
select(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for the specified 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, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, toArray, toBag, toList, toSet, toStringallSatisfy, anySatisfy, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toBag, toList, toSetadd, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableBooleanSet(MutableBooleanSet set)
public 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)
BooleanIterableselect in interface BooleanIterableselect in interface BooleanSetselect in interface MutableBooleanCollectionselect in interface MutableBooleanSetselect in class AbstractUnmodifiableBooleanCollectionpublic MutableBooleanSet reject(BooleanPredicate predicate)
BooleanIterablereject in interface BooleanIterablereject in interface BooleanSetreject in interface MutableBooleanCollectionreject in interface MutableBooleanSetreject in class AbstractUnmodifiableBooleanCollectionpublic <V> MutableSet<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterablecollect in interface BooleanIterablecollect in interface BooleanSetcollect in interface MutableBooleanCollectioncollect 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 BooleanSettoImmutable in interface MutableBooleanCollectiontoImmutable in interface MutableBooleanSettoImmutable in class AbstractUnmodifiableBooleanCollectionpublic MutableBooleanSet newEmpty()
MutableBooleanSetnewEmpty in interface MutableBooleanCollectionnewEmpty in interface MutableBooleanSetCopyright © 2004–2019. All rights reserved.