Interface ToShortFunction<T>

Type Parameters:
T - the object type that this function applies to
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<T>
Functional interface to apply an operation to an object and produce a short.
  • Method Summary

    Modifier and Type
    Method
    Description
    short
    applyAsShort(T value)
    Applies this function to the given argument of type ToShortFunction.
  • Method Details

    • applyAsShort

      short applyAsShort(T value)
      Applies this function to the given argument of type ToShortFunction.
      Parameters:
      value - the argument to the function
      Returns:
      the short result