@ThreadSafe public final class SynchronizedBooleanSet extends AbstractSynchronizedBooleanCollection implements com.gs.collections.api.set.primitive.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 |
|---|---|
com.gs.collections.api.LazyBooleanIterable |
asLazy() |
com.gs.collections.api.set.primitive.MutableBooleanSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableBooleanSet |
asUnmodifiable() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.collections.api.block.function.primitive.BooleanToObjectFunction<? extends V> function) |
boolean |
equals(java.lang.Object otherSet)
Follows the same general contract as
Set.equals(Object). |
com.gs.collections.api.set.primitive.BooleanSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
static SynchronizedBooleanSet |
of(com.gs.collections.api.set.primitive.MutableBooleanSet set)
This method will take a MutableBooleanSet and wrap it directly in a SynchronizedBooleanSet.
|
static SynchronizedBooleanSet |
of(com.gs.collections.api.set.primitive.MutableBooleanSet set,
java.lang.Object lock)
This method will take a MutableBooleanSet and wrap it directly in a SynchronizedBooleanSet.
|
com.gs.collections.api.set.primitive.MutableBooleanSet |
reject(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate) |
com.gs.collections.api.set.primitive.MutableBooleanSet |
select(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate) |
com.gs.collections.api.set.primitive.ImmutableBooleanSet |
toImmutable()
Returns an immutable copy of this set.
|
SynchronizedBooleanSet |
with(boolean element) |
SynchronizedBooleanSet |
withAll(com.gs.collections.api.BooleanIterable elements) |
SynchronizedBooleanSet |
without(boolean element) |
SynchronizedBooleanSet |
withoutAll(com.gs.collections.api.BooleanIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, booleanIterator, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, getBooleanCollection, getLock, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, remove, removeAll, removeAll, size, toArray, toBag, toList, toSet, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAllpublic static SynchronizedBooleanSet of(com.gs.collections.api.set.primitive.MutableBooleanSet set)
public static SynchronizedBooleanSet of(com.gs.collections.api.set.primitive.MutableBooleanSet set, java.lang.Object lock)
public SynchronizedBooleanSet without(boolean element)
without in interface com.gs.collections.api.collection.primitive.MutableBooleanCollectionwithout in interface com.gs.collections.api.set.primitive.MutableBooleanSetwithout in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanSet with(boolean element)
with in interface com.gs.collections.api.collection.primitive.MutableBooleanCollectionwith in interface com.gs.collections.api.set.primitive.MutableBooleanSetwith in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanSet withAll(com.gs.collections.api.BooleanIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableBooleanCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableBooleanSetwithAll in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanSet withoutAll(com.gs.collections.api.BooleanIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableBooleanCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableBooleanSetwithoutAll in class AbstractSynchronizedBooleanCollectionpublic com.gs.collections.api.set.primitive.MutableBooleanSet select(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate)
select in interface com.gs.collections.api.BooleanIterableselect in interface com.gs.collections.api.collection.primitive.MutableBooleanCollectionselect in interface com.gs.collections.api.set.primitive.BooleanSetselect in interface com.gs.collections.api.set.primitive.MutableBooleanSetselect in class AbstractSynchronizedBooleanCollectionpublic com.gs.collections.api.set.primitive.MutableBooleanSet reject(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate)
reject in interface com.gs.collections.api.BooleanIterablereject in interface com.gs.collections.api.collection.primitive.MutableBooleanCollectionreject in interface com.gs.collections.api.set.primitive.BooleanSetreject in interface com.gs.collections.api.set.primitive.MutableBooleanSetreject in class AbstractSynchronizedBooleanCollectionpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.BooleanToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.BooleanIterablecollect in interface com.gs.collections.api.collection.primitive.MutableBooleanCollectioncollect in interface com.gs.collections.api.set.primitive.BooleanSetcollect in interface com.gs.collections.api.set.primitive.MutableBooleanSetcollect in class AbstractSynchronizedBooleanCollectionpublic boolean equals(java.lang.Object otherSet)
com.gs.collections.api.set.primitive.BooleanSetSet.equals(Object).equals in interface com.gs.collections.api.set.primitive.BooleanSetequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.set.primitive.BooleanSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.BooleanSethashCode in class java.lang.Objectpublic com.gs.collections.api.LazyBooleanIterable asLazy()
asLazy in interface com.gs.collections.api.BooleanIterableasLazy in class AbstractSynchronizedBooleanCollectionpublic com.gs.collections.api.set.primitive.MutableBooleanSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableBooleanCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableBooleanSetasUnmodifiable in class AbstractSynchronizedBooleanCollectionpublic com.gs.collections.api.set.primitive.MutableBooleanSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableBooleanCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableBooleanSetasSynchronized in class AbstractSynchronizedBooleanCollectionpublic com.gs.collections.api.set.primitive.BooleanSet freeze()
com.gs.collections.api.set.primitive.MutableBooleanSetfreeze in interface com.gs.collections.api.set.primitive.BooleanSetfreeze in interface com.gs.collections.api.set.primitive.MutableBooleanSetpublic com.gs.collections.api.set.primitive.ImmutableBooleanSet toImmutable()
com.gs.collections.api.set.primitive.MutableBooleanSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableBooleanCollectiontoImmutable in interface com.gs.collections.api.set.primitive.BooleanSettoImmutable in interface com.gs.collections.api.set.primitive.MutableBooleanSettoImmutable in class AbstractSynchronizedBooleanCollection