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[] arrIntToValue can be expressed asIntToValue itv = i -> arr[i]
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <T> Tget(int i)-
Methods inherited from interface java.util.function.IntFunction
apply
-
-