Package de.danielbechler.diff.differ
Interface DifferConfigurer
- All Known Implementing Classes:
DifferService
public interface DifferConfigurer
Created by Daniel Bechler.
-
Method Summary
Modifier and TypeMethodDescriptionregister(DifferFactory differFactory) Registers a new Differ to be used when comparing objects.
-
Method Details
-
register
Registers a new Differ to be used when comparing objects. Differs that have been registered later always win over earlier Differs. This way it is easily possible to override the default behavior, without actually removing the standard differs.- Parameters:
differFactory- Factory that creates a new Differ. Will be called exactly once and the resulting Differ will be pushed to the underlyingDifferProvider.- Returns:
- The
ObjectDifferBuilderfor chaining.
-