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
-
Method Details
-
compare
Compares two numbers according to a specific operations.- Parameters:
value1- The first value to comparevalue2- The second value to compare- Returns:
- The result of the comparison.
-