Package org.apache.juneau.utils
Class BeanDiff.Builder<T>
java.lang.Object
org.apache.juneau.utils.BeanDiff.Builder<T>
- Type Parameters:
T
- The bean type.
- Enclosing class:
BeanDiff
Builder class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbeanContext
(BeanContext value) Specifies the bean context to use for introspecting beans.build()
Build the differences.Specifies the properties to exclude from the comparison.Specifies the properties to exclude from the comparison.Specifies the first bean to compare.Specifies the properties to include in the comparison.Specifies the properties to include in the comparison.Specifies the second bean to compare.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
first
Specifies the first bean to compare.- Parameters:
value
- The first bean to compare.- Returns:
- This object.
-
second
Specifies the second bean to compare.- Parameters:
value
- The first bean to compare.- Returns:
- This object.
-
beanContext
Specifies the bean context to use for introspecting beans.If not specified, uses
BeanContext.DEFAULT
.- Parameters:
value
- The bean context to use for introspecting beans.- Returns:
- This object.
-
include
Specifies the properties to include in the comparison.If not specified, compares all properties.
- Parameters:
properties
- The properties to include in the comparison.- Returns:
- This object.
-
include
Specifies the properties to include in the comparison.If not specified, compares all properties.
- Parameters:
properties
- The properties to include in the comparison.- Returns:
- This object.
-
exclude
Specifies the properties to exclude from the comparison.- Parameters:
properties
- The properties to exclude from the comparison.- Returns:
- This object.
-
exclude
Specifies the properties to exclude from the comparison.- Parameters:
properties
- The properties to exclude from the comparison.- Returns:
- This object.
-
build
Build the differences.- Returns:
- A new
BeanDiff
object.
-