BooleanIterable, MutableBooleanCollection, PrimitiveIterable, BooleanSet, MutableBooleanSetpublic 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| Constructor | Description |
|---|---|
SynchronizedBooleanSet(MutableBooleanSet set) |
|
SynchronizedBooleanSet(MutableBooleanSet set,
java.lang.Object newLock) |
| Modifier and Type | Method | Description |
|---|---|---|
LazyBooleanIterable |
asLazy() |
Returns a LazyBooleanIterable adapter wrapping the source BooleanIterable.
|
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(java.lang.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 SynchronizedBooleanSet |
of(MutableBooleanSet set) |
This method will take a MutableBooleanSet and wrap it directly in a SynchronizedBooleanSet.
|
static SynchronizedBooleanSet |
of(MutableBooleanSet set,
java.lang.Object lock) |
This method will take a MutableBooleanSet and wrap it directly in a SynchronizedBooleanSet.
|
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.
|
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, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, toArray, toBag, toList, toSet, toStringallSatisfy, anySatisfy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, 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 SynchronizedBooleanSet(MutableBooleanSet set)
public SynchronizedBooleanSet(MutableBooleanSet set, java.lang.Object newLock)
public static SynchronizedBooleanSet of(MutableBooleanSet set)
public static SynchronizedBooleanSet of(MutableBooleanSet set, java.lang.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)
BooleanIterableselect in interface BooleanIterableselect in interface BooleanSetselect in interface MutableBooleanCollectionselect in interface MutableBooleanSetselect in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanSet reject(BooleanPredicate predicate)
BooleanIterablereject in interface BooleanIterablereject in interface BooleanSetreject in interface MutableBooleanCollectionreject in interface MutableBooleanSetreject in class AbstractSynchronizedBooleanCollectionpublic <V> MutableSet<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterablecollect in interface BooleanIterablecollect in interface BooleanSetcollect in interface MutableBooleanCollectioncollect in interface MutableBooleanSetcollect in class AbstractSynchronizedBooleanCollectionpublic boolean equals(java.lang.Object otherSet)
BooleanSetSet.equals(Object).equals in interface BooleanSetequals in class java.lang.Objectpublic int hashCode()
BooleanSetSet.hashCode().hashCode in interface BooleanSethashCode in class java.lang.Objectpublic LazyBooleanIterable asLazy()
BooleanIterableasLazy 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 BooleanSettoImmutable in interface MutableBooleanCollectiontoImmutable in interface MutableBooleanSettoImmutable in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanSet newEmpty()
MutableBooleanSetnewEmpty in interface MutableBooleanCollectionnewEmpty in interface MutableBooleanSetCopyright © 2004–2018. All rights reserved.