Interface CollectionUtil.IndexedFunction<T,R>

Type Parameters:
T - type
R - return value
Enclosing class:
CollectionUtil
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CollectionUtil.IndexedFunction<T,R>
Function with index
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(int index, T t)
    Maps to new value
  • Method Details

    • apply

      R apply(int index, T t)
      Maps to new value
      Parameters:
      index - index
      t - input
      Returns:
      mapped value