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

public Interface MutableIntCollection

extends IntIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.MutableIntList, org.eclipse.collections.api.set.primitive.MutableIntSet, org.eclipse.collections.api.bag.primitive.MutableIntBag
Imports
java.util.Collection, org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.block.function.primitive.IntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, org.eclipse.collections.api.iterator.MutableIntIterator, 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(int element)

public boolean
addAll(int... source)

public boolean
public MutableIntCollection
public MutableIntCollection
public void
public <V> MutableCollection<V>
collect(IntToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.IntIterable.collect.

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

public MutableIntIterator
intIterator()

Redeclares org.eclipse.collections.api.IntIterable.intIterator.

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

public default MutableIntCollection
newEmpty()

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

public MutableIntCollection
reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.IntIterable.reject.

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

public boolean
remove(int value)

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

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

public MutableIntCollection
select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.IntIterable.select.

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

public default MutableIntCollection
public ImmutableIntCollection
public MutableIntCollection
with(int element)

public MutableIntCollection
withAll(IntIterable elements)

public MutableIntCollection
without(int element)

public MutableIntCollection
Inherited from org.eclipse.collections.api.IntIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

addback to summary
public boolean add(int element)
addAllback to summary
public boolean addAll(int... source)
addAllback to summary
public boolean addAll(IntIterable source)
asSynchronizedback to summary
public MutableIntCollection asSynchronized()
asUnmodifiableback to summary
public MutableIntCollection asUnmodifiable()
clearback to summary
public void clear()
collectback to summary
public <V> MutableCollection<V> collect(IntToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.IntIterable.collect.

Doc from org.eclipse.collections.api.IntIterable.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.

intIteratorback to summary
public MutableIntIterator intIterator()

Redeclares org.eclipse.collections.api.IntIterable.intIterator.

Doc from org.eclipse.collections.api.IntIterable.intIterator.

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

Annotations
@Override
newEmptyback to summary
public default MutableIntCollection newEmpty()

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

Since
9.2.
rejectback to summary
public MutableIntCollection reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.IntIterable.reject.

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

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

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

Redeclares org.eclipse.collections.api.IntIterable.select.

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

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

Annotations
@Override
tapback to summary
public default MutableIntCollection tap(IntProcedure procedure)

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

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableIntCollection toImmutable()
withback to summary
public MutableIntCollection with(int element)
withAllback to summary
public MutableIntCollection withAll(IntIterable elements)
withoutback to summary
public MutableIntCollection without(int element)
withoutAllback to summary
public MutableIntCollection withoutAll(IntIterable elements)