Interface IntToValue

All Superinterfaces:
IntFunction<Object>
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 interface IntToValue extends IntFunction<Object>

A convenient "random object accessor", i.e. function that converts an integer address to an Object. For example, for an array of Objects Object[] arr IntToValue can be expressed as IntToValue itv = i -> arr[i]

  • Method Summary

    Modifier and Type
    Method
    Description
    default <T> T
    get(int i)
     

    Methods inherited from interface java.util.function.IntFunction

    apply
  • Method Details

    • get

      default <T> T get(int i)