接口 IndexedConsumer<T>
-
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface IndexedConsumer<T>A consumer with index.
-
-
方法详细资料
-
accept
void accept(long index, T value)consume value- 参数:
index- the index of elements consumerd.start from 0value- the value
-
-