T - The bean type.public static class BeanDiff.Builder<T> extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BeanDiff.Builder<T> |
beanContext(BeanContext value)
Specifies the bean context to use for introspecting beans.
|
BeanDiff |
build()
Build the differences.
|
BeanDiff.Builder<T> |
exclude(Set<String> properties)
Specifies the properties to exclude from the comparison.
|
BeanDiff.Builder<T> |
exclude(String... properties)
Specifies the properties to exclude from the comparison.
|
BeanDiff.Builder<T> |
first(T value)
Specifies the first bean to compare.
|
BeanDiff.Builder<T> |
include(Set<String> properties)
Specifies the properties to include in the comparison.
|
BeanDiff.Builder<T> |
include(String... properties)
Specifies the properties to include in the comparison.
|
BeanDiff.Builder<T> |
second(T value)
Specifies the second bean to compare.
|
public Builder()
public BeanDiff.Builder<T> first(T value)
value - The first bean to compare.public BeanDiff.Builder<T> second(T value)
value - The first bean to compare.public BeanDiff.Builder<T> beanContext(BeanContext value)
If not specified, uses BeanContext.DEFAULT.
value - The bean context to use for introspecting beans.public BeanDiff.Builder<T> include(String... properties)
If not specified, compares all properties.
properties - The properties to include in the comparison.public BeanDiff.Builder<T> include(Set<String> properties)
If not specified, compares all properties.
properties - The properties to include in the comparison.public BeanDiff.Builder<T> exclude(String... properties)
properties - The properties to exclude from the comparison.public BeanDiff.Builder<T> exclude(Set<String> properties)
properties - The properties to exclude from the comparison.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.