Interface LongBinaryOperator

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

    Modifier and Type Method Description
    long apply​(long x, long y)
    Computes the operator on the given inputs.
    default java.lang.Long apply​(java.lang.Long x, java.lang.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 java.util.function.LongBinaryOperator
      Implementation Specification:
      This default implementation delegates to apply(long, long).
    • apply

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