Class ReflectionDiffBuilder.Builder<T>
java.lang.Object
org.apache.commons.lang3.builder.AbstractReflection.AbstractBuilder<ReflectionDiffBuilder.Builder<T>>
org.apache.commons.lang3.builder.ReflectionDiffBuilder.Builder<T>
- Type Parameters:
T- type of the left and right object.
- All Implemented Interfaces:
Supplier<AbstractReflection>
- Enclosing class:
ReflectionDiffBuilder<T>
public static final class ReflectionDiffBuilder.Builder<T>
extends AbstractReflection.AbstractBuilder<ReflectionDiffBuilder.Builder<T>>
Constructs a new instance.
- Since:
- 3.15.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new configuredReflectionDiffBuilder.get()setDiffBuilder(DiffBuilder<T> diffBuilder) Sets the DiffBuilder.setExcludeFieldNames(String... excludeFieldNames) Sets field names to exclude from output.Methods inherited from class AbstractReflection.AbstractBuilder
asThis, setForceAccessible
-
Constructor Details
-
Builder
public Builder()Constructs a new instance.
-
-
Method Details
-
build
Builds a new configuredReflectionDiffBuilder.- Returns:
- A new configured
ReflectionDiffBuilder.
-
get
-
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.
-