Top Description Methods
org.eclipse.collections.api.collection.primitive

public Interface MutableBooleanCollection

extends BooleanIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.MutableBooleanList, org.eclipse.collections.api.set.primitive.MutableBooleanSet, org.eclipse.collections.api.bag.primitive.MutableBooleanBag
Imports
java.util.Collection, org.eclipse.collections.api.BooleanIterable, org.eclipse.collections.api.block.function.primitive.BooleanToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BooleanPredicate, org.eclipse.collections.api.block.procedure.primitive.BooleanProcedure, org.eclipse.collections.api.iterator.MutableBooleanIterator, org.eclipse.collections.api.collection.MutableCollection

This file was automatically generated from template file mutablePrimitiveCollection.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public boolean
add(boolean element)

public boolean
addAll(boolean... source)

public boolean
public MutableBooleanCollection
public MutableBooleanCollection
public MutableBooleanIterator
booleanIterator()

Redeclares org.eclipse.collections.api.BooleanIterable.booleanIterator.

Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.

public void
public <V> MutableCollection<V>
collect(BooleanToObjectFunction<? extends V> function)

Redeclares 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.

public default MutableBooleanCollection
newEmpty()

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

public MutableBooleanCollection
reject(BooleanPredicate predicate)

Redeclares 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.

public boolean
remove(boolean value)

public boolean
public boolean
removeAll(boolean... source)

public default boolean
public boolean
public boolean
retainAll(boolean... source)

public MutableBooleanCollection
select(BooleanPredicate predicate)

Redeclares 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.

public default MutableBooleanCollection
public ImmutableBooleanCollection
public MutableBooleanCollection
with(boolean element)

public MutableBooleanCollection
public MutableBooleanCollection
without(boolean element)

public MutableBooleanCollection
Inherited from org.eclipse.collections.api.BooleanIterable:
allSatisfyanySatisfyasLazychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortnoneSatisfyreducereduceIfEmptyrejectselecttoArraytoArraytoBagtoListtoSet

Method Detail

addback to summary
public boolean add(boolean element)
addAllback to summary
public boolean addAll(boolean... source)
addAllback to summary
public boolean addAll(BooleanIterable source)
asSynchronizedback to summary
public MutableBooleanCollection asSynchronized()
asUnmodifiableback to summary
public MutableBooleanCollection asUnmodifiable()
booleanIteratorback to summary
public MutableBooleanIterator booleanIterator()

Redeclares org.eclipse.collections.api.BooleanIterable.booleanIterator.

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

Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.

Annotations
@Override
clearback to summary
public void clear()
collectback to summary
public <V> MutableCollection<V> collect(BooleanToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.BooleanIterable.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.

newEmptyback to summary
public default MutableBooleanCollection newEmpty()

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

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

Redeclares org.eclipse.collections.api.BooleanIterable.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
removeback to summary
public boolean remove(boolean value)
removeAllback to summary
public boolean removeAll(BooleanIterable source)
removeAllback to summary
public boolean removeAll(boolean... source)
removeIfback to summary
public default boolean removeIf(BooleanPredicate predicate)
Since
9.1
retainAllback to summary
public boolean retainAll(BooleanIterable elements)
Since
5.0
See Also
Collection#retainAll(Collection)
retainAllback to summary
public boolean retainAll(boolean... source)
Since
5.0
See Also
Collection#retainAll(Collection)
selectback to summary
public MutableBooleanCollection select(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.BooleanIterable.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
tapback to summary
public default MutableBooleanCollection tap(BooleanProcedure procedure)

Overrides default org.eclipse.collections.api.BooleanIterable.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableBooleanCollection toImmutable()
withback to summary
public MutableBooleanCollection with(boolean element)
withAllback to summary
public MutableBooleanCollection withAll(BooleanIterable elements)
withoutback to summary
public MutableBooleanCollection without(boolean element)
withoutAllback to summary
public MutableBooleanCollection withoutAll(BooleanIterable elements)