001package Torello.Java.Function; 002 003/** 004 * Function-Pointer 005 * <SPAN CLASS=TJF>Input:</SPAN> {@code A} 006 * <SPAN CLASS=TJF>Output:</SPAN> {@code byte}. 007 * 008 * <EMBED CLASS='external-html' DATA-TYPE=byte DATA-FILE-ID=TO_PRIM_ONE_ARG> 009 * 010 * @param <A> The type of the input-parameter. 011 */ 012@FunctionalInterface 013public interface ToByteFunction<A> 014{ 015 /** 016 * Applies {@code 'this'} integer-function to the given argument, and returns the resulting 017 * {@code 'byte'} 018 * 019 * <BR /><BR /><EMBED CLASS='external-html' DATA-FILE-ID=FUNC_INTER_METH> 020 * 021 * @param a the input argument 022 * @return The {@code 'byte'} result. 023 */ 024 public byte applyAsByte(A a); 025}