Package Torello.Java.Function
Interface ByteSupplier
-
- 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 ByteSupplier
Function-Pointer Input:NONEOutput:byte.
Quite similar to Java's'IntSupplier', the specialized 'Supplier' for primitive-integers, but whose'get'method has been modified to return a'byte'-primitive.
Hi-Lited Source-Code:- View Here: Torello/Java/Function/ByteSupplier.java
- Open New Browser-Tab: Torello/Java/Function/ByteSupplier.java
File Size: 642 Bytes Line Count: 22 '\n' Characters Found
-
-
Method Summary
@FunctionalInterface: (Lambda) Method Modifier and Type Method bytegetAsByte()
-
-
-
Method Detail
-
getAsByte
byte getAsByte()
Retrieves a result, as a'byte'.
FunctionalInterface Target-Method:
This method corresponds to the@FunctionalInterfaceAnnotation's method requirement. It is the only non-default, non-staticmethod in this interface, and may be the target of a Lambda-Expression or'::'(double-colon) Function-Pointer.- Returns:
- The
'byte'result.
-
-