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