Interface ValueComparable<T>
- Type Parameters:
T
- The type of value.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Aspect providing means to compare one value to another one in terms of equal meaning.
E.g.
null
may be considered equal to an empty String.- Since:
- 5.2.180803
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AspectType<ValueComparable<?>>
The aspect's technical type to be used for requesting it from anAspectable
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
areEquivalent
(T value1, T value2) Compares two values in terms of equal meaning
-
Field Details
-
TYPE
The aspect's technical type to be used for requesting it from anAspectable
.- Since:
- 5.2.180803
-
-
Method Details
-
areEquivalent
Compares two values in terms of equal meaning- Parameters:
value1
- the first valuevalue2
- the second value- Returns:
true
if both values are considered to be equal- Since:
- 5.2.180803
-