Interface ComparisonOperator

All Superinterfaces:
Serializable
All Known Implementing Classes:
Operator
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 ComparisonOperator extends Serializable
Interface for numerical binary comparison operators.
Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    evaluate(long actual, long expected)
    Evaluate the condition based on the actual and expected numbers.
  • Method Details

    • evaluate

      boolean evaluate(long actual, long expected)
      Evaluate the condition based on the actual and expected numbers.
      Parameters:
      actual - the actual number.
      expected - the expected numbers
      Returns:
      true if the condition is matched, false otherwise.