Interface ComparisonProjection.IntComparer
- Enclosing class:
ComparisonProjection
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Performs comparison for two values of type int.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
compare
(int value, int existingValue) Compare a value to an existing value.
-
Method Details
-
compare
boolean compare(int value, int existingValue) Compare a value to an existing value.- Parameters:
value
- the value to compare.existingValue
- the existing value.- Returns:
- true if value should replace existingValue, false otherwise.
-