@ThreadSafe public final class SynchronizedBooleanSet extends AbstractSynchronizedBooleanCollection implements MutableBooleanSet
MutableBooleanSet. It is imperative that the user manually synchronize on the collection when iterating over it using the
BooleanIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveSet.stg.
MutableBooleanSet.asSynchronized(),
MutableSet.asSynchronized(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
LazyBooleanIterable |
asLazy() |
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(). |
<T> T |
injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function) |
static SynchronizedBooleanSet |
of(MutableBooleanSet set)
This method will take a MutableBooleanSet and wrap it directly in a SynchronizedBooleanSet.
|
static SynchronizedBooleanSet |
of(MutableBooleanSet set,
Object lock)
This method will take a MutableBooleanSet and wrap it directly in a SynchronizedBooleanSet.
|
MutableBooleanSet |
reject(BooleanPredicate predicate) |
MutableBooleanSet |
select(BooleanPredicate predicate) |
ImmutableBooleanSet |
toImmutable()
Returns an immutable copy of this set.
|
SynchronizedBooleanSet |
with(boolean element) |
SynchronizedBooleanSet |
withAll(BooleanIterable elements) |
SynchronizedBooleanSet |
without(boolean element) |
SynchronizedBooleanSet |
withoutAll(BooleanIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, booleanIterator, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toBag, toList, toSet, toStringadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, booleanIterator, contains, containsAll, containsAll, count, detectIfNone, forEach, noneSatisfy, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static SynchronizedBooleanSet of(MutableBooleanSet set)
public static SynchronizedBooleanSet of(MutableBooleanSet set, Object lock)
public SynchronizedBooleanSet without(boolean element)
without in interface MutableBooleanCollectionwithout in interface MutableBooleanSetwithout in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanSet with(boolean element)
with in interface MutableBooleanCollectionwith in interface MutableBooleanSetwith in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanSet withAll(BooleanIterable elements)
withAll in interface MutableBooleanCollectionwithAll in interface MutableBooleanSetwithAll in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanSet withoutAll(BooleanIterable elements)
withoutAll in interface MutableBooleanCollectionwithoutAll in interface MutableBooleanSetwithoutAll in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanSet select(BooleanPredicate predicate)
select in interface BooleanIterableselect in interface MutableBooleanCollectionselect in interface BooleanSetselect in interface MutableBooleanSetselect in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanSet reject(BooleanPredicate predicate)
reject in interface BooleanIterablereject in interface MutableBooleanCollectionreject in interface BooleanSetreject in interface MutableBooleanSetreject in class AbstractSynchronizedBooleanCollectionpublic <V> MutableSet<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanIterablecollect in interface MutableBooleanCollectioncollect in interface BooleanSetcollect in interface MutableBooleanSetcollect in class AbstractSynchronizedBooleanCollectionpublic 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 LazyBooleanIterable asLazy()
asLazy in interface BooleanIterableasLazy in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanSet asUnmodifiable()
asUnmodifiable in interface MutableBooleanCollectionasUnmodifiable in interface MutableBooleanSetasUnmodifiable in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanSet asSynchronized()
asSynchronized in interface MutableBooleanCollectionasSynchronized in interface MutableBooleanSetasSynchronized in class AbstractSynchronizedBooleanCollectionpublic BooleanSet freeze()
MutableBooleanSetfreeze in interface BooleanSetfreeze in interface MutableBooleanSetpublic ImmutableBooleanSet toImmutable()
MutableBooleanSettoImmutable in interface MutableBooleanCollectiontoImmutable in interface BooleanSettoImmutable in interface MutableBooleanSettoImmutable in class AbstractSynchronizedBooleanCollectionpublic <T> T injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function)
injectInto in interface BooleanIterableinjectInto in class AbstractSynchronizedBooleanCollectionCopyright © 2004–2017. All rights reserved.