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

public Class SynchronizedBooleanList

extends AbstractSynchronizedBooleanCollection
implements MutableBooleanList
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.list.primitive.MutableBooleanList, org.eclipse.collections.api.list.primitive.BooleanList, org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable, org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable, org.eclipse.collections.api.BooleanIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection
Imports
java.util.Collection, org.eclipse.collections.api.BooleanIterable, .LazyBooleanIterable, org.eclipse.collections.api.block.function.primitive.BooleanIntToObjectFunction, .BooleanToObjectFunction, .ObjectBooleanIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BooleanIntPredicate, .BooleanPredicate, org.eclipse.collections.api.block.procedure.primitive.BooleanBooleanProcedure, .BooleanIntProcedure, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.list.primitive.BooleanList, .ImmutableBooleanList, .MutableBooleanList, org.eclipse.collections.api.stack.primitive.MutableBooleanStack, org.eclipse.collections.api.tuple.primitive.BooleanBooleanPair, .BooleanObjectPair, org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection, org.eclipse.collections.impl.factory.primitive.BooleanLists, .BooleanStacks, org.eclipse.collections.impl.lazy.primitive.LazyBooleanIterableAdapter, .ReverseBooleanIterable, org.eclipse.collections.impl.list.mutable.SynchronizedMutableList

A synchronized view of a MutableBooleanList. It is imperative that the user manually synchronize on the on the collection when iterating over it using an iterator or stream.

This file was automatically generated from template file synchronizedPrimitiveList.stg.

Since
3.1.
See Also
MutableBooleanList#asSynchronized(), MutableList#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 boolean
public boolean
public void
public LazyBooleanIterable
public LazyBooleanIterable
public MutableBooleanList
public MutableBooleanList
public MutableList<Boolean>
public <V> MutableList<V>
public <V> MutableList<V>
collectWithIndex(BooleanIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.collectWithIndex.

Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.

public <V, R extends Collection<V>> R
collectWithIndex(BooleanIntToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.collectWithIndex.

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

public MutableBooleanList
public boolean
public void
forEachInBoth(BooleanList other, BooleanBooleanProcedure procedure)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.forEachInBoth.

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

public void
public boolean
public boolean
public boolean
private MutableBooleanList
public int
public int
public <T> T
public int
public MutableBooleanList
public MutableBooleanList
public MutableBooleanList
rejectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.rejectWithIndex.

Returns a new MutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.

public <R extends MutableBooleanCollection> R
rejectWithIndex(BooleanIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.rejectWithIndex.

Returns a new MutableBooleanCollection excluding all elements with corresponding indexes matching the specified predicate.

public boolean
public MutableBooleanList
public MutableBooleanList
public MutableBooleanList
selectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.selectWithIndex.

Returns a new MutableBooleanList including all elements with corresponding indexes matching the specified predicate.

public <R extends MutableBooleanCollection> R
selectWithIndex(BooleanIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.selectWithIndex.

Returns a new MutableBooleanCollection including all elements with corresponding indexes matching the specified predicate.

public boolean
public MutableBooleanList
public ImmutableBooleanList
public MutableBooleanList
public MutableBooleanStack
toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.toStack.

Converts the collection to a BooleanStack.

public SynchronizedBooleanList
public SynchronizedBooleanList
public SynchronizedBooleanList
public SynchronizedBooleanList
public <T> MutableList<BooleanObjectPair<T>>
zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.zip.

Returns a MutableList formed from this MutableBooleanList and a ListIterable by combining corresponding elements in pairs.

public MutableList<BooleanBooleanPair>
zipBoolean(BooleanIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.zipBoolean.

Returns a MutableList formed from this MutableBooleanList and another BooleanList by combining corresponding elements in pairs.

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

SynchronizedBooleanListback to summary
public SynchronizedBooleanList(MutableBooleanList list)
SynchronizedBooleanListback to summary
public SynchronizedBooleanList(MutableBooleanList list, Object newLock)

Method Detail

addAllAtIndexback to summary
public boolean addAllAtIndex(int index, boolean... source)

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.addAllAtIndex.

Annotations
@Override
addAllAtIndexback to summary
public boolean addAllAtIndex(int index, BooleanIterable source)

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.addAllAtIndex.

Annotations
@Override
addAtIndexback to summary
public void addAtIndex(int index, boolean element)

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.addAtIndex.

Annotations
@Override
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
asReversedback to summary
public LazyBooleanIterable asReversed()

Implements org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.asReversed.

Annotations
@Override
asSynchronizedback to summary
public MutableBooleanList asSynchronized()

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableBooleanList asUnmodifiable()

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.asUnmodifiable.

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.boxed.

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

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.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
collectWithIndexback to summary
public <V> MutableList<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.collectWithIndex.

Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.

Annotations
@Override
Since
9.1.
collectWithIndexback to summary
public <V, R extends Collection<V>> R collectWithIndex(BooleanIntToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.collectWithIndex.

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

Since
9.1.
distinctback to summary
public MutableBooleanList distinct()

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.distinct.

Annotations
@Override
Since
6.0.
equalsback to summary
public boolean equals(Object otherList)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.list.primitive.BooleanList.equals.

Doc from org.eclipse.collections.api.list.primitive.BooleanList.equals.

Follows the same general contract as java.util.List#equals(Object).

Annotations
@Override
forEachInBothback to summary
public void forEachInBoth(BooleanList other, BooleanBooleanProcedure procedure)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.forEachInBoth.

Doc from org.eclipse.collections.api.list.primitive.BooleanList.forEachInBoth.

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

Annotations
@Override
forEachWithIndexback to summary
public void forEachWithIndex(BooleanIntProcedure procedure)

Implements org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.forEachWithIndex.

Annotations
@Override
getback to summary
public boolean get(int index)

Implements org.eclipse.collections.api.list.primitive.BooleanList.get.

Annotations
@Override
getFirstback to summary
public boolean getFirst()

Implements org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.getFirst.

Annotations
@Override
getLastback to summary
public boolean getLast()

Implements org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.getLast.

Annotations
@Override
getMutableBooleanListback to summary
private MutableBooleanList getMutableBooleanList()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.eclipse.collections.api.list.primitive.BooleanList.hashCode.

Doc from org.eclipse.collections.api.list.primitive.BooleanList.hashCode.

Follows the same general contract as java.util.List#hashCode().

Annotations
@Override
indexOfback to summary
public int indexOf(boolean value)

Implements org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.indexOf.

Annotations
@Override
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectBooleanIntToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.injectIntoWithIndex.

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(boolean value)

Implements org.eclipse.collections.api.list.primitive.BooleanList.lastIndexOf.

Annotations
@Override
newEmptyback to summary
public MutableBooleanList newEmpty()

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.newEmpty, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.newEmpty.

Doc from org.eclipse.collections.api.list.primitive.MutableBooleanList.newEmpty.

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

Since
9.2.
rejectback to summary
public MutableBooleanList reject(BooleanPredicate predicate)

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.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
rejectWithIndexback to summary
public MutableBooleanList rejectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.rejectWithIndex.

Returns a new MutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.

Since
11.1.
rejectWithIndexback to summary
public <R extends MutableBooleanCollection> R rejectWithIndex(BooleanIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.rejectWithIndex.

Returns a new MutableBooleanCollection excluding all elements with corresponding indexes matching the specified predicate.

Since
11.1.
removeAtIndexback to summary
public boolean removeAtIndex(int index)

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.removeAtIndex.

Annotations
@Override
reverseThisback to summary
public MutableBooleanList reverseThis()

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.reverseThis.

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

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.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
selectWithIndexback to summary
public MutableBooleanList selectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.selectWithIndex.

Returns a new MutableBooleanList including all elements with corresponding indexes matching the specified predicate.

Since
11.1.
selectWithIndexback to summary
public <R extends MutableBooleanCollection> R selectWithIndex(BooleanIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.selectWithIndex.

Returns a new MutableBooleanCollection including all elements with corresponding indexes matching the specified predicate.

Since
11.1.
setback to summary
public boolean set(int index, boolean element)

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.set.

Annotations
@Override
subListback to summary
public MutableBooleanList subList(int fromIndex, int toIndex)

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.subList.

Annotations
@Override
toImmutableback to summary
public ImmutableBooleanList toImmutable()

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.toImmutable, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.toImmutable.

Doc from org.eclipse.collections.api.list.primitive.MutableBooleanList.toImmutable.

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableBooleanList toReversed()

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.toReversed.

Annotations
@Override
toStackback to summary
public MutableBooleanStack toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.toStack.

Doc from org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable.toStack.

Converts the collection to a BooleanStack.

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

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.with, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.with.

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

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.withAll, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.withAll.

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

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.without, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.without.

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

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

Implements org.eclipse.collections.api.list.primitive.MutableBooleanList.withoutAll, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.withoutAll.

Annotations
@Override
zipback to summary
public <T> MutableList<BooleanObjectPair<T>> zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.zip.

Doc from org.eclipse.collections.api.list.primitive.MutableBooleanList.zip.

Returns a MutableList formed from this MutableBooleanList and a ListIterable by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.

Since
9.1.
zipBooleanback to summary
public MutableList<BooleanBooleanPair> zipBoolean(BooleanIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableBooleanList.zipBoolean.

Doc from org.eclipse.collections.api.list.primitive.MutableBooleanList.zipBoolean.

Returns a MutableList formed from this MutableBooleanList and another BooleanList by combining corresponding elements in pairs. If one of the two BooleanLists is longer than the other, its remaining elements are ignored.

Since
9.1.