public class InclusionService extends 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 IsIgnoredResolver
public InclusionConfigurer.ToInclude include()
InclusionConfigurer
include
in interface InclusionConfigurer
public InclusionConfigurer.ToExclude exclude()
exclude
in interface InclusionConfigurer
public InclusionConfigurer resolveUsing(InclusionResolver inclusionResolver)
InclusionConfigurer
InclusionResolver
. 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 InclusionConfigurer
public ObjectDifferBuilder and()
and
in interface InclusionConfigurer
Copyright © 2016. All rights reserved.