Interface UnaryIntOperator

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 UnaryIntOperator
Like a UnaryOperator but uses the primitive type int.
Author:
owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    apply(int value)
    Apply the operator.
  • Method Details

    • apply

      int apply(int value)
      Apply the operator.
      Parameters:
      value - the parameter.
      Returns:
      the result of the operator.