public class ObjectDifferBuilder
extends java.lang.Object
ObjectDiffer
instance and exposes a
configuration API to customize its behavior to suit your needs.限定符和类型 | 方法和说明 |
---|---|
ObjectDiffer |
build() |
static ObjectDiffer |
buildDefault() |
CategoryConfigurer |
categories()
Allows to assign custom categories (or tags) to entire types or selected
elements and properties.
|
CircularReferenceConfigurer |
circularReferenceHandling()
Allows to define how the circular reference detector compares object
instances.
|
ComparisonConfigurer |
comparison()
Allows to configure the way objects are compared.
|
DifferConfigurer |
differs() |
FilteringConfigurer |
filtering()
Allows to exclude nodes from being added to the object graph based on
criteria that are only known after the diff for the affected node and all
its children has been determined.
|
IdentityService |
identity()
EXPERT FEATURE: Allows to configure the way the identity of objects is determined in order to establish
the relationship between different versions.
|
InclusionConfigurer |
inclusion()
Allows to in- or exclude nodes based on property name, object type,
category or location in the object graph.
|
IntrospectionConfigurer |
introspection()
Allows to replace the default bean introspector with a custom
implementation.
|
static ObjectDifferBuilder |
startBuilding() |
public FilteringConfigurer filtering()
public IntrospectionConfigurer introspection()
public CircularReferenceConfigurer circularReferenceHandling()
public InclusionConfigurer inclusion()
public ComparisonConfigurer comparison()
public IdentityService identity()
equals
method; but
sometimes that's just not possible. For example when you are dealing with generated classes or you are dealing
with third-party code.
Please keep in mind that this only alters the way this library establishes the connection between two objects.
This doesn't extend to the underlying collections. So keep what in mind when you start merging your collections
and weird things start to happen.
WARNING: Personally I'd try to avoid this feature as long as possible and only use it when there is
absolutely no other way.public CategoryConfigurer categories()
public DifferConfigurer differs()
public static ObjectDiffer buildDefault()
public static ObjectDifferBuilder startBuilding()
public ObjectDiffer build()