Interface GenericNumberOperations.INumberComparator

Enclosing class:
GenericNumberOperations

private static interface GenericNumberOperations.INumberComparator
Strategy for comparing two numbers. this is used for defining constant operations.
Author:
El-Sharkawy
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    compare(Number value1, Number value2)
    Compares two numbers according to a specific operations.
  • Method Details

    • compare

      boolean compare(Number value1, Number value2)
      Compares two numbers according to a specific operations.
      Parameters:
      value1 - The first value to compare
      value2 - The second value to compare
      Returns:
      The result of the comparison.