T - Custom TypeC - Concrete type of PropertyChange returned by a comparatorCustomBigDecimalComparatorpublic interface CustomPropertyComparator<T,C extends PropertyChange>
CustomType.
CustomValueComparator.
JaversBuilder.javers().registerCustomComparator(new GuavaCustomComparator(), Multimap.class).build()
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<C> |
compare(T left,
T right,
GlobalId affectedId,
Property property) |
Called by JaVers to calculate property-to-property diff
between two Custom Type objects.
|
boolean |
equals(T a,
T b) |
Called by JaVers to calculate collection-to-collection diff,
when Custom Type objects are Collection items.
|
java.util.Optional<C> compare(T left, T right, GlobalId affectedId, Property property)
left - left (or old) valueright - right (or current) valueaffectedId - Id of domain object being comparedproperty - property being compared