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

public Interface MutableCharCollection

extends CharIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.MutableCharList, org.eclipse.collections.api.set.primitive.MutableCharSet, org.eclipse.collections.api.bag.primitive.MutableCharBag
Imports
java.util.Collection, org.eclipse.collections.api.CharIterable, org.eclipse.collections.api.block.function.primitive.CharToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.CharPredicate, org.eclipse.collections.api.block.procedure.primitive.CharProcedure, org.eclipse.collections.api.iterator.MutableCharIterator, 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(char element)

public boolean
addAll(char... source)

public boolean
public MutableCharCollection
public MutableCharCollection
public MutableCharIterator
charIterator()

Redeclares org.eclipse.collections.api.CharIterable.charIterator.

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

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

Redeclares org.eclipse.collections.api.CharIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public default MutableCharCollection
newEmpty()

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

public MutableCharCollection
reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.CharIterable.reject.

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

public boolean
remove(char value)

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

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

public MutableCharCollection
select(CharPredicate predicate)

Redeclares org.eclipse.collections.api.CharIterable.select.

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

public default MutableCharCollection
public ImmutableCharCollection
public MutableCharCollection
with(char element)

public MutableCharCollection
public MutableCharCollection
without(char element)

public MutableCharCollection
Inherited from org.eclipse.collections.api.CharIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

addback to summary
public boolean add(char element)
addAllback to summary
public boolean addAll(char... source)
addAllback to summary
public boolean addAll(CharIterable source)
asSynchronizedback to summary
public MutableCharCollection asSynchronized()
asUnmodifiableback to summary
public MutableCharCollection asUnmodifiable()
charIteratorback to summary
public MutableCharIterator charIterator()

Redeclares org.eclipse.collections.api.CharIterable.charIterator.

Doc from org.eclipse.collections.api.CharIterable.charIterator.

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

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

Redeclares org.eclipse.collections.api.CharIterable.collect.

Doc from org.eclipse.collections.api.CharIterable.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 MutableCharCollection newEmpty()

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

Since
9.2.
rejectback to summary
public MutableCharCollection reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.CharIterable.reject.

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

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

Annotations
@Override
removeback to summary
public boolean remove(char value)
removeAllback to summary
public boolean removeAll(CharIterable source)
removeAllback to summary
public boolean removeAll(char... source)
removeIfback to summary
public default boolean removeIf(CharPredicate predicate)
Since
9.1
retainAllback to summary
public boolean retainAll(CharIterable elements)
Since
5.0
See Also
Collection#retainAll(Collection)
retainAllback to summary
public boolean retainAll(char... source)
Since
5.0
See Also
Collection#retainAll(Collection)
selectback to summary
public MutableCharCollection select(CharPredicate predicate)

Redeclares org.eclipse.collections.api.CharIterable.select.

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

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

Annotations
@Override
tapback to summary
public default MutableCharCollection tap(CharProcedure procedure)

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

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableCharCollection toImmutable()
withback to summary
public MutableCharCollection with(char element)
withAllback to summary
public MutableCharCollection withAll(CharIterable elements)
withoutback to summary
public MutableCharCollection without(char element)
withoutAllback to summary
public MutableCharCollection withoutAll(CharIterable elements)