Package org.apache.commons.lang3.builder
Class ReflectionDiffBuilder.Builder<T>
java.lang.Object
org.apache.commons.lang3.builder.ReflectionDiffBuilder.Builder<T>
- Type Parameters:
T- type of the left and right object.
- Enclosing class:
- ReflectionDiffBuilder<T>
Constructs a new instance.
- Since:
- 3.15.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new configuredReflectionDiffBuilder.setDiffBuilder(DiffBuilder<T> diffBuilder) Sets the DiffBuilder.setExcludeFieldNames(String... excludeFieldNames) Sets field names to exclude from output.
-
Constructor Details
-
Builder
public Builder()Constructs a new instance.
-
-
Method Details
-
build
Builds a new configuredReflectionDiffBuilder.- Returns:
- a new configured
ReflectionDiffBuilder.
-
setDiffBuilder
Sets the DiffBuilder.- Parameters:
diffBuilder- the DiffBuilder.- Returns:
thisinstance.
-
setExcludeFieldNames
Sets field names to exclude from output. Intended for fields like"password"or"lastModificationDate".- Parameters:
excludeFieldNames- field names to exclude.- Returns:
thisinstance.
-