Package Torello.Java.Function
Interface ToShortFunction<A>
-
- Type Parameters:
A
- The type of the input-parameter.
- 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 ToShortFunction<A>
Function-Pointer Input:A
Output:short
.
AFunctionalInterface
(Function-Pointer) that points to a function that generates / produces a Javashort
-primitive. This function accepts1
argument.
Hi-Lited Source-Code:- View Here: Torello/Java/Function/ToShortFunction.java
- Open New Browser-Tab: Torello/Java/Function/ToShortFunction.java
File Size: 688 Bytes Line Count: 25 '\n' Characters Found
-
-
Method Summary
@FunctionalInterface: (Lambda) Method Modifier and Type Method short
applyAsShort(A a)
-
-
-
Method Detail
-
applyAsShort
short applyAsShort(A a)
Applies'this'
integer-function to the given argument, and returns the resulting'short'
FunctionalInterface Target-Method:
This method corresponds to the@FunctionalInterface
Annotation's method requirement. It is the only non-default
, non-static
method in this interface, and may be the target of a Lambda-Expression or'::'
(double-colon) Function-Pointer.- Parameters:
a
- the input argument- Returns:
- The
'short'
result.
-
-