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

public Interface LongValuesMap

extends LongIterable
Known Direct Subinterfaces
org.eclipse.collections.api.map.primitive.ShortLongMap, org.eclipse.collections.api.map.primitive.ByteLongMap, org.eclipse.collections.api.map.primitive.IntLongMap, org.eclipse.collections.api.map.primitive.MutableLongValuesMap, org.eclipse.collections.api.map.primitive.FloatLongMap, org.eclipse.collections.api.map.primitive.DoubleLongMap, org.eclipse.collections.api.map.primitive.CharLongMap, org.eclipse.collections.api.map.primitive.LongLongMap
Imports
org.eclipse.collections.api.LongIterable, org.eclipse.collections.api.bag.Bag, org.eclipse.collections.api.bag.primitive.LongBag, 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.collection.primitive.MutableLongCollection

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(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 boolean

Returns:

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

Returns whether or not this map contains the value.

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

Iterates through each value in this map.

public LongBag
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 LongBag
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 LongValuesMap
public MutableLongCollection

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.LongIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortlongIteratormaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

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

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

Returns whether or not this map contains the value.

Parameters
value:long

the value to test

Returns:boolean

if this collection contains the value

forEachValueback to summary
public void forEachValue(LongProcedure procedure)

Iterates through each value in this map.

Parameters
procedure:LongProcedure

the procedure to invoke for each value in this map.

rejectback to summary
public LongBag 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
selectback to summary
public LongBag 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 LongValuesMap tap(LongProcedure procedure)

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

Annotations
@Override
Since
9.0.
valuesback to summary
public MutableLongCollection 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:MutableLongCollection

the values as a collection backed by this map