Interface CheckedUnaryOperator<T,E extends Exception>

Type Parameters:
T - input and output-type of operator
E - type of exception that may be thrown if something goes wrong
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 CheckedUnaryOperator<T,E extends Exception>
Like a UnaryOperator but allows an exception to be thrown.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T in)
    Applies the operation.
  • Method Details

    • apply

      T apply(T in) throws E
      Applies the operation.
      Parameters:
      in - the argument passed in to the operation.
      Returns:
      the result of the operation, passed out.
      Throws:
      E - if the operation cannot succeed.