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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean compare​(java.lang.Number value1, java.lang.Number value2)
      Compares two numbers according to a specific operations.
    • Method Detail

      • compare

        boolean compare​(java.lang.Number value1,
                        java.lang.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.