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>
public static final class ReflectionDiffBuilder.Builder<T> extends java.lang.Object
Constructs a new instance.- Since:
- 3.15.0
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReflectionDiffBuilder<T>
build()
Builds a new configuredReflectionDiffBuilder
.ReflectionDiffBuilder.Builder<T>
setDiffBuilder(DiffBuilder<T> diffBuilder)
Sets the DiffBuilder.ReflectionDiffBuilder.Builder<T>
setExcludeFieldNames(java.lang.String... excludeFieldNames)
Sets field names to exclude from output.
-
-
-
Method Detail
-
build
public ReflectionDiffBuilder<T> build()
Builds a new configuredReflectionDiffBuilder
.- Returns:
- a new configured
ReflectionDiffBuilder
.
-
setDiffBuilder
public ReflectionDiffBuilder.Builder<T> setDiffBuilder(DiffBuilder<T> diffBuilder)
Sets the DiffBuilder.- Parameters:
diffBuilder
- the DiffBuilder.- Returns:
this
instance.
-
setExcludeFieldNames
public ReflectionDiffBuilder.Builder<T> setExcludeFieldNames(java.lang.String... excludeFieldNames)
Sets field names to exclude from output. Intended for fields like"password"
or"lastModificationDate"
.- Parameters:
excludeFieldNames
- field names to exclude.- Returns:
this
instance.
-
-