Interface ShortUnaryOperator

  • 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 ShortUnaryOperator
    Functional interface describing a method that given a short returns another short.
    Since:
    1.0.5
    Author:
    Emil Forslund
    See Also:
    IntUnaryOperator, LongUnaryOperator, DoubleUnaryOperator
    • Method Detail

      • applyAsShort

        short applyAsShort​(short value)
        Applies this function on the specified short, returning a new short.
        Parameters:
        value - the input value
        Returns:
        the output
      • compose

        default ShortUnaryOperator compose​(ShortUnaryOperator before)
        Composes a new function from this method and the specified one, applying the specified function before this function.
        Parameters:
        before - the function to apply before this
        Returns:
        the combined function
      • andThen

        default ShortUnaryOperator andThen​(ShortUnaryOperator after)
        Composes a new function from this method and the specified one, applying the specified function after this function.
        Parameters:
        after - the function to apply after this
        Returns:
        the combined function