public class DifferService extends java.lang.Object implements DifferConfigurer
Constructor and Description |
---|
DifferService(ObjectDifferBuilder objectDifferBuilder) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<DifferFactory> |
getDifferFactories() |
ObjectDifferBuilder |
register(DifferFactory differFactory)
Registers a new Differ to be used when comparing objects.
|
public DifferService(ObjectDifferBuilder objectDifferBuilder)
public ObjectDifferBuilder register(DifferFactory differFactory)
DifferConfigurer
register
in interface DifferConfigurer
differFactory
- Factory that creates a new Differ. Will be called exactly once and the resulting Differ
will be pushed to the underlying DifferProvider
.ObjectDifferBuilder
for chaining.public java.util.Collection<DifferFactory> getDifferFactories()