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

public Interface IntValuesMap

extends IntIterable
Known Direct Subinterfaces
org.eclipse.collections.api.map.primitive.FloatIntMap, org.eclipse.collections.api.map.primitive.DoubleIntMap, org.eclipse.collections.api.map.primitive.CharIntMap, org.eclipse.collections.api.map.primitive.ShortIntMap, org.eclipse.collections.api.map.primitive.ByteIntMap, org.eclipse.collections.api.map.primitive.LongIntMap, org.eclipse.collections.api.map.primitive.IntIntMap, org.eclipse.collections.api.map.primitive.MutableIntValuesMap
Imports
org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.bag.Bag, org.eclipse.collections.api.bag.primitive.IntBag, 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.collection.primitive.MutableIntCollection

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

Returns:

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

Returns whether or not this map contains the value.

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

Iterates through each value in this map.

public IntBag
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 IntBag
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 IntValuesMap
public MutableIntCollection

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.IntIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortintIteratormaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

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

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

Returns whether or not this map contains the value.

Parameters
value:int

the value to test

Returns:boolean

if this collection contains the value

forEachValueback to summary
public void forEachValue(IntProcedure procedure)

Iterates through each value in this map.

Parameters
procedure:IntProcedure

the procedure to invoke for each value in this map.

rejectback to summary
public IntBag 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
selectback to summary
public IntBag 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 IntValuesMap tap(IntProcedure procedure)

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

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

the values as a collection backed by this map