Interface LongBinaryOperator

All Superinterfaces:
BiFunction<Long,Long,Long>, BinaryOperator<Long>, LongBinaryOperator
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 LongBinaryOperator extends BinaryOperator<Long>, LongBinaryOperator
A type-specific BinaryOperator; provides methods operating both on objects and on primitives.
Since:
8.5.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    apply(long x, long y)
    Computes the operator on the given inputs.
    default Long
    apply(Long x, Long y)
    Deprecated.
    Please use the corresponding type-specific method instead.
    default long
    applyAsLong(long x, long y)
    Deprecated.
    Please use apply(long, long).

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • apply

      long apply(long x, long y)
      Computes the operator on the given inputs.
      Parameters:
      x - the first input.
      y - the second input.
      Returns:
      the output of the operator on the given inputs.
    • applyAsLong

      @Deprecated default long applyAsLong(long x, long y)
      Deprecated.
      Please use apply(long, long).
      Specified by:
      applyAsLong in interface LongBinaryOperator
      Implementation Specification:
      This default implementation delegates to apply(long, long).
    • apply

      @Deprecated default Long apply(Long x, Long y)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      apply in interface BiFunction<Long,Long,Long>