Package org.evrete.api
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]