Package com.google.common.collect
Interface Streams.IntFunctionWithIndex<R extends @Nullable Object>
-
- Enclosing class:
- Streams
public static interface Streams.IntFunctionWithIndex<R extends @Nullable Object>
An analogue ofIntFunction
also accepting an index.This interface is only intended for use by callers of
Streams.mapWithIndex(IntStream, IntFunctionWithIndex)
.- Since:
- 33.4.0 (but since 21.0 in the JRE flavor)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
apply(int from, long index)
Applies this function to the given argument and its index within a stream.
-