Top Description Fields Constructors Methods
org.eclipse.collections.impl.set.mutable.primitive

public Class SynchronizedBooleanSet

extends AbstractSynchronizedBooleanCollection
implements MutableBooleanSet
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.set.primitive.MutableBooleanSet, org.eclipse.collections.api.set.primitive.BooleanSet, org.eclipse.collections.api.BooleanIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection
Imports
java.util.Collection, .Collections, org.eclipse.collections.api.BooleanIterable, .LazyBooleanIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.BooleanToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BooleanPredicate, org.eclipse.collections.api.iterator.BooleanIterator, org.eclipse.collections.api.set.MutableSet, org.eclipse.collections.api.set.primitive.ImmutableBooleanSet, .BooleanSet, .MutableBooleanSet, org.eclipse.collections.api.tuple.primitive.BooleanBooleanPair, org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection, org.eclipse.collections.impl.lazy.primitive.LazyBooleanIterableAdapter, org.eclipse.collections.impl.factory.primitive.BooleanSets, org.eclipse.collections.impl.set.mutable.SynchronizedMutableSet

A synchronized view of a 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.

Since
3.1.
See Also
MutableBooleanSet#asSynchronized(), MutableSet#asSynchronized()

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public LazyBooleanIterable
public MutableBooleanSet
public MutableBooleanSet
public MutableSet<Boolean>
public LazyIterable<BooleanBooleanPair>
cartesianProduct(BooleanSet set)

Implements org.eclipse.collections.api.set.primitive.BooleanSet.cartesianProduct.

Returns the set whose members are all possible ordered pairs (a, b) where a is a member of this and b is a member of set.

public <V> MutableSet<V>
public boolean
equals(Object otherSet)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.set.primitive.BooleanSet.equals.

Follows the same general contract as Set#equals(Object).

public BooleanSet
freeze()

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.freeze.

Returns a frozen copy of this set.

private MutableBooleanSet
public int
public MutableBooleanSet
public static SynchronizedBooleanSet
of(MutableBooleanSet set)

This method will take a MutableBooleanSet and wrap it directly in a SynchronizedBooleanSet.

public static SynchronizedBooleanSet
of(MutableBooleanSet set, Object lock)

This method will take a MutableBooleanSet and wrap it directly in a SynchronizedBooleanSet.

public MutableBooleanSet
public MutableBooleanSet
public ImmutableBooleanSet
public SynchronizedBooleanSet
public SynchronizedBooleanSet
public SynchronizedBooleanSet
public SynchronizedBooleanSet
Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringbooleanIteratorchunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachgetBooleanCollectiongetLockinjectIntoisEmptymakeStringmakeStringmakeStringnoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizetoArraytoArraytoBagtoListtoSettoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.serialVersionUID.

Constructor Detail

SynchronizedBooleanSetback to summary
public SynchronizedBooleanSet(MutableBooleanSet set)
SynchronizedBooleanSetback to summary
public SynchronizedBooleanSet(MutableBooleanSet set, Object newLock)

Method Detail

asLazyback to summary
public LazyBooleanIterable asLazy()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.asLazy.

Implements org.eclipse.collections.api.BooleanIterable.asLazy.

Doc from org.eclipse.collections.api.BooleanIterable.asLazy.

Returns a LazyBooleanIterable adapter wrapping the source BooleanIterable.

Annotations
@Override
asSynchronizedback to summary
public MutableBooleanSet asSynchronized()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.asSynchronized.

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableBooleanSet asUnmodifiable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.asUnmodifiable.

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableSet<Boolean> boxed()

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.boxed.

Annotations
@Override
cartesianProductback to summary
public LazyIterable<BooleanBooleanPair> cartesianProduct(BooleanSet set)

Implements org.eclipse.collections.api.set.primitive.BooleanSet.cartesianProduct.

Doc from org.eclipse.collections.api.set.primitive.BooleanSet.cartesianProduct.

Returns the set whose members are all possible ordered pairs (a, b) where a is a member of this and b is a member of set.

Annotations
@Override
collectback to summary
public <V> MutableSet<V> collect(BooleanToObjectFunction<? extends V> function)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.collect.

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.collect, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.collect.

Doc from org.eclipse.collections.api.BooleanIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

Annotations
@Override
equalsback to summary
public boolean equals(Object otherSet)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.set.primitive.BooleanSet.equals.

Doc from org.eclipse.collections.api.set.primitive.BooleanSet.equals.

Follows the same general contract as Set#equals(Object).

Annotations
@Override
freezeback to summary
public BooleanSet freeze()

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.freeze.

Doc from org.eclipse.collections.api.set.primitive.MutableBooleanSet.freeze.

Returns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.

getMutableBooleanSetback to summary
private MutableBooleanSet getMutableBooleanSet()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.eclipse.collections.api.set.primitive.BooleanSet.hashCode.

Doc from org.eclipse.collections.api.set.primitive.BooleanSet.hashCode.

Follows the same general contract as Set#hashCode().

Annotations
@Override
newEmptyback to summary
public MutableBooleanSet newEmpty()

Overrides default org.eclipse.collections.api.set.primitive.MutableBooleanSet.newEmpty, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.newEmpty.

Doc from org.eclipse.collections.api.set.primitive.MutableBooleanSet.newEmpty.

Creates a new empty mutable version of the same Set type.

Since
9.2.
ofback to summary
public static SynchronizedBooleanSet of(MutableBooleanSet set)

This method will take a MutableBooleanSet and wrap it directly in a SynchronizedBooleanSet.

ofback to summary
public static SynchronizedBooleanSet of(MutableBooleanSet set, Object lock)

This method will take a MutableBooleanSet and wrap it directly in a SynchronizedBooleanSet. Additionally, a developer specifies which lock to use with the collection.

rejectback to summary
public MutableBooleanSet reject(BooleanPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.reject.

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.reject, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.reject.

Doc from org.eclipse.collections.api.BooleanIterable.reject.

Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.

Annotations
@Override
selectback to summary
public MutableBooleanSet select(BooleanPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.select.

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.select, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.select.

Doc from org.eclipse.collections.api.BooleanIterable.select.

Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.

Annotations
@Override
toImmutableback to summary
public ImmutableBooleanSet toImmutable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.toImmutable.

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.toImmutable, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.toImmutable.

Doc from org.eclipse.collections.api.set.primitive.MutableBooleanSet.toImmutable.

Returns an immutable copy of this set.

Annotations
@Override
withback to summary
public SynchronizedBooleanSet with(boolean element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.with.

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.with, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.with.

Annotations
@Override
withAllback to summary
public SynchronizedBooleanSet withAll(BooleanIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.withAll.

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.withAll, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.withAll.

Annotations
@Override
withoutback to summary
public SynchronizedBooleanSet without(boolean element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.without.

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.without, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.without.

Annotations
@Override
withoutAllback to summary
public SynchronizedBooleanSet withoutAll(BooleanIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection.withoutAll.

Implements org.eclipse.collections.api.set.primitive.MutableBooleanSet.withoutAll, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.withoutAll.

Annotations
@Override