public class InclusionService extends java.lang.Object implements InclusionConfigurer, IsIgnoredResolver
InclusionConfigurer.ToExclude, InclusionConfigurer.ToInclude| 构造器和说明 |
|---|
InclusionService(CategoryResolver categoryResolver,
ObjectDifferBuilder rootConfiguration) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 IsIgnoredResolverpublic InclusionConfigurer.ToInclude include()
InclusionConfigurerinclude 在接口中 InclusionConfigurerpublic InclusionConfigurer.ToExclude exclude()
exclude 在接口中 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 在接口中 InclusionConfigurerpublic ObjectDifferBuilder and()
and 在接口中 InclusionConfigurer