1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | package Torello.Java.Function; /** * Function-Pointer * <SPAN CLASS=TJF>Input:</SPAN> {@code A} * <SPAN CLASS=TJF>Output:</SPAN> {@code byte}. * * <EMBED CLASS='external-html' DATA-TYPE=byte DATA-FILE-ID=TO_PRIM_ONE_ARG> * * @param <A> The type of the input-parameter. */ @FunctionalInterface public interface ToByteFunction<A> { /** * Applies {@code 'this'} integer-function to the given argument, and returns the resulting * {@code 'byte'} * * <BR /><BR /><EMBED CLASS='external-html' DATA-FILE-ID=FUNC_INTER_METH> * * @param a the input argument * @return The {@code 'byte'} result. */ public byte applyAsByte(A a); } |