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

public Interface MutableDoubleCollection

extends DoubleIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.MutableDoubleList, org.eclipse.collections.api.set.primitive.MutableDoubleSet, org.eclipse.collections.api.bag.primitive.MutableDoubleBag
Imports
java.util.Collection, org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, org.eclipse.collections.api.iterator.MutableDoubleIterator, 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(double element)

public boolean
addAll(double... source)

public boolean
public MutableDoubleCollection
public MutableDoubleCollection
public void
public <V> MutableCollection<V>
collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.DoubleIterable.collect.

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

public MutableDoubleIterator
doubleIterator()

Redeclares org.eclipse.collections.api.DoubleIterable.doubleIterator.

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

public default MutableDoubleCollection
newEmpty()

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

public MutableDoubleCollection
reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.DoubleIterable.reject.

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

public boolean
remove(double value)

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

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

public MutableDoubleCollection
select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.DoubleIterable.select.

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

public default MutableDoubleCollection
public ImmutableDoubleCollection
public MutableDoubleCollection
with(double element)

public MutableDoubleCollection
public MutableDoubleCollection
without(double element)

public MutableDoubleCollection
Inherited from org.eclipse.collections.api.DoubleIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

addback to summary
public boolean add(double element)
addAllback to summary
public boolean addAll(double... source)
addAllback to summary
public boolean addAll(DoubleIterable source)
asSynchronizedback to summary
public MutableDoubleCollection asSynchronized()
asUnmodifiableback to summary
public MutableDoubleCollection asUnmodifiable()
clearback to summary
public void clear()
collectback to summary
public <V> MutableCollection<V> collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.DoubleIterable.collect.

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

doubleIteratorback to summary
public MutableDoubleIterator doubleIterator()

Redeclares org.eclipse.collections.api.DoubleIterable.doubleIterator.

Doc from org.eclipse.collections.api.DoubleIterable.doubleIterator.

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

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

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

Since
9.2.
rejectback to summary
public MutableDoubleCollection reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.DoubleIterable.reject.

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

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

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

Redeclares org.eclipse.collections.api.DoubleIterable.select.

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

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

Annotations
@Override
tapback to summary
public default MutableDoubleCollection tap(DoubleProcedure procedure)

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

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableDoubleCollection toImmutable()
withback to summary
public MutableDoubleCollection with(double element)
withAllback to summary
public MutableDoubleCollection withAll(DoubleIterable elements)
withoutback to summary
public MutableDoubleCollection without(double element)
withoutAllback to summary
public MutableDoubleCollection withoutAll(DoubleIterable elements)