public class InclusionService extends java.lang.Object implements InclusionConfigurer, IsIgnoredResolver
InclusionConfigurer.ToExclude, InclusionConfigurer.ToInclude| Constructor and Description |
|---|
InclusionService(CategoryResolver categoryResolver,
ObjectDifferBuilder rootConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
ObjectDifferBuilder |
and() |
InclusionConfigurer.ToExclude |
exclude() |
InclusionConfigurer.ToInclude |
include()
Includes elements (and implicitly all their children) based on certain criteria, unless their parent element
is excluded.
|
boolean |
isIgnored(DiffNode node) |
InclusionConfigurer |
resolveUsing(InclusionResolver inclusionResolver)
Registers a custom
InclusionResolver. |
public InclusionService(CategoryResolver categoryResolver, ObjectDifferBuilder rootConfiguration)
public boolean isIgnored(DiffNode node)
isIgnored in interface IsIgnoredResolverpublic InclusionConfigurer.ToInclude include()
InclusionConfigurerinclude in interface InclusionConfigurerpublic InclusionConfigurer.ToExclude exclude()
exclude in interface InclusionConfigurerpublic InclusionConfigurer resolveUsing(InclusionResolver inclusionResolver)
InclusionConfigurerInclusionResolver. Some objects may not be relevant
or suitable for the comparison process. Using an InclusionResolver is a
powerful and flexible way to detect and exclude those objects.
Keep in mind that every single node in the object graph will be checked against each and every registered InclusionResolver. If performance is important to you, make sure that calling
its methods is as cheap as possible.resolveUsing in interface InclusionConfigurerpublic ObjectDifferBuilder and()
and in interface InclusionConfigurer