Interface CustomPropertyComparator<T,C extends PropertyChange>

Type Parameters:
T - Custom Type
C - Concrete type of PropertyChange returned by a comparator
All Superinterfaces:
CustomValueComparator<T>

public interface CustomPropertyComparator<T,C extends PropertyChange> extends CustomValueComparator<T>
Property-scope comparator bounded to CustomType.

Custom Types are not easy to manage, use it as a last resort,
only for corner cases like comparing custom Collection types.


Typically, Custom Types are large structures (like Multimap).
Implementation should calculate diff between two objects of given Custom Type.

Usage:
 JaversBuilder.javers()
              .registerCustomType( Multimap.class, new GuavaCustomComparator())
              .build()
 
See Also:
  • Method Details