@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 FormModifier 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() . |
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, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toBag, toList, toSet, toString
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, retainAll, retainAll
allSatisfy, anySatisfy, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, noneSatisfy, toArray, toBag, toList, toSet
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public static SynchronizedBooleanSet of(MutableBooleanSet set)
public static SynchronizedBooleanSet of(MutableBooleanSet set, Object lock)
public SynchronizedBooleanSet without(boolean element)
without
in interface MutableBooleanCollection
without
in interface MutableBooleanSet
without
in class AbstractSynchronizedBooleanCollection
public SynchronizedBooleanSet with(boolean element)
with
in interface MutableBooleanCollection
with
in interface MutableBooleanSet
with
in class AbstractSynchronizedBooleanCollection
public SynchronizedBooleanSet withAll(BooleanIterable elements)
withAll
in interface MutableBooleanCollection
withAll
in interface MutableBooleanSet
withAll
in class AbstractSynchronizedBooleanCollection
public SynchronizedBooleanSet withoutAll(BooleanIterable elements)
withoutAll
in interface MutableBooleanCollection
withoutAll
in interface MutableBooleanSet
withoutAll
in class AbstractSynchronizedBooleanCollection
public MutableBooleanSet select(BooleanPredicate predicate)
select
in interface BooleanIterable
select
in interface MutableBooleanCollection
select
in interface BooleanSet
select
in interface MutableBooleanSet
select
in class AbstractSynchronizedBooleanCollection
public MutableBooleanSet reject(BooleanPredicate predicate)
reject
in interface BooleanIterable
reject
in interface MutableBooleanCollection
reject
in interface BooleanSet
reject
in interface MutableBooleanSet
reject
in class AbstractSynchronizedBooleanCollection
public <V> MutableSet<V> collect(BooleanToObjectFunction<? extends V> function)
collect
in interface BooleanIterable
collect
in interface MutableBooleanCollection
collect
in interface BooleanSet
collect
in interface MutableBooleanSet
collect
in class AbstractSynchronizedBooleanCollection
public boolean equals(Object otherSet)
BooleanSet
Set.equals(Object)
.equals
in interface BooleanSet
equals
in class Object
public int hashCode()
BooleanSet
Set.hashCode()
.hashCode
in interface BooleanSet
hashCode
in class Object
public LazyBooleanIterable asLazy()
asLazy
in interface BooleanIterable
asLazy
in class AbstractSynchronizedBooleanCollection
public MutableBooleanSet asUnmodifiable()
asUnmodifiable
in interface MutableBooleanCollection
asUnmodifiable
in interface MutableBooleanSet
asUnmodifiable
in class AbstractSynchronizedBooleanCollection
public MutableBooleanSet asSynchronized()
asSynchronized
in interface MutableBooleanCollection
asSynchronized
in interface MutableBooleanSet
asSynchronized
in class AbstractSynchronizedBooleanCollection
public BooleanSet freeze()
MutableBooleanSet
freeze
in interface BooleanSet
freeze
in interface MutableBooleanSet
public ImmutableBooleanSet toImmutable()
MutableBooleanSet
toImmutable
in interface MutableBooleanCollection
toImmutable
in interface BooleanSet
toImmutable
in interface MutableBooleanSet
toImmutable
in class AbstractSynchronizedBooleanCollection
Copyright © 2004–2016. All rights reserved.