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

public Interface MutableLongCollection

extends LongIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.MutableLongList, org.eclipse.collections.api.set.primitive.MutableLongSet, org.eclipse.collections.api.bag.primitive.MutableLongBag
Imports
java.util.Collection, org.eclipse.collections.api.LongIterable, org.eclipse.collections.api.block.function.primitive.LongToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongPredicate, org.eclipse.collections.api.block.procedure.primitive.LongProcedure, org.eclipse.collections.api.iterator.MutableLongIterator, 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(long element)

public boolean
addAll(long... source)

public boolean
public MutableLongCollection
public MutableLongCollection
public void
public <V> MutableCollection<V>
collect(LongToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.LongIterable.collect.

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

public MutableLongIterator
longIterator()

Redeclares org.eclipse.collections.api.LongIterable.longIterator.

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

public default MutableLongCollection
newEmpty()

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

public MutableLongCollection
reject(LongPredicate predicate)

Redeclares org.eclipse.collections.api.LongIterable.reject.

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

public boolean
remove(long value)

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

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

public MutableLongCollection
select(LongPredicate predicate)

Redeclares org.eclipse.collections.api.LongIterable.select.

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

public default MutableLongCollection
public ImmutableLongCollection
public MutableLongCollection
with(long element)

public MutableLongCollection
public MutableLongCollection
without(long element)

public MutableLongCollection
Inherited from org.eclipse.collections.api.LongIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

addback to summary
public boolean add(long element)
addAllback to summary
public boolean addAll(long... source)
addAllback to summary
public boolean addAll(LongIterable source)
asSynchronizedback to summary
public MutableLongCollection asSynchronized()
asUnmodifiableback to summary
public MutableLongCollection asUnmodifiable()
clearback to summary
public void clear()
collectback to summary
public <V> MutableCollection<V> collect(LongToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.LongIterable.collect.

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

longIteratorback to summary
public MutableLongIterator longIterator()

Redeclares org.eclipse.collections.api.LongIterable.longIterator.

Doc from org.eclipse.collections.api.LongIterable.longIterator.

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

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

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

Since
9.2.
rejectback to summary
public MutableLongCollection reject(LongPredicate predicate)

Redeclares org.eclipse.collections.api.LongIterable.reject.

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

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

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

Redeclares org.eclipse.collections.api.LongIterable.select.

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

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

Annotations
@Override
tapback to summary
public default MutableLongCollection tap(LongProcedure procedure)

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

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableLongCollection toImmutable()
withback to summary
public MutableLongCollection with(long element)
withAllback to summary
public MutableLongCollection withAll(LongIterable elements)
withoutback to summary
public MutableLongCollection without(long element)
withoutAllback to summary
public MutableLongCollection withoutAll(LongIterable elements)