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

public Interface DoubleValuesMap

extends DoubleIterable
Known Direct Subinterfaces
org.eclipse.collections.api.map.primitive.FloatDoubleMap, org.eclipse.collections.api.map.primitive.DoubleDoubleMap, org.eclipse.collections.api.map.primitive.CharDoubleMap, org.eclipse.collections.api.map.primitive.ShortDoubleMap, org.eclipse.collections.api.map.primitive.ByteDoubleMap, org.eclipse.collections.api.map.primitive.IntDoubleMap, org.eclipse.collections.api.map.primitive.MutableDoubleValuesMap, org.eclipse.collections.api.map.primitive.LongDoubleMap
Imports
org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.bag.Bag, org.eclipse.collections.api.bag.primitive.DoubleBag, 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.collection.primitive.MutableDoubleCollection

This file was automatically generated from template file primitiveValuesMap.stg.
Since
6.0.

Method Summary

Modifier and TypeMethod and Description
public <V> Bag<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 boolean

Returns:

if this collection contains the value
containsValue
(double
the value to test
value
)

Returns whether or not this map contains the value.

public void
forEachValue(DoubleProcedure
the procedure to invoke for each value in this map.
procedure
)

Iterates through each value in this map.

public DoubleBag
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 DoubleBag
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 DoubleValuesMap
public MutableDoubleCollection

Returns:

the values as a collection backed by this map
values
()

Returns the values in this map as a separate collection.

Inherited from org.eclipse.collections.api.DoubleIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNonedoubleIteratoreachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

collectback to summary
public <V> Bag<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.

Annotations
@Override
containsValueback to summary
public boolean containsValue(double value)

Returns whether or not this map contains the value.

Parameters
value:double

the value to test

Returns:boolean

if this collection contains the value

forEachValueback to summary
public void forEachValue(DoubleProcedure procedure)

Iterates through each value in this map.

Parameters
procedure:DoubleProcedure

the procedure to invoke for each value in this map.

rejectback to summary
public DoubleBag 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
selectback to summary
public DoubleBag 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 DoubleValuesMap tap(DoubleProcedure procedure)

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

Annotations
@Override
Since
9.0.
valuesback to summary
public MutableDoubleCollection values()

Returns the values in this map as a separate collection. The returned collection is backed by the map, so any changes made to the returned collection will affect the state of this map.

Returns:MutableDoubleCollection

the values as a collection backed by this map