ReflectionDiffBuilder.Builder

public static final class org.apache.commons.lang3.builder.ReflectionDiffBuilder.Builder<T> extends AbstractReflection.AbstractBuilder<ReflectionDiffBuilder.Builder<T>>[source]

Constructs a new instance.

Parameters:

<T> – type of the left and right object.

Since:

3.15.0

Constructors

Builder()

Constructs a new instance.

public Builder()[source]

Constructs a new instance.

Methods

build()

Builds a new configured ReflectionDiffBuilder.

get()

setDiffBuilder(DiffBuilder)

Sets the DiffBuilder.

setExcludeFieldNames(String[])

Sets field names to exclude from output.

public ReflectionDiffBuilder<T> build()[source]

Builds a new configured ReflectionDiffBuilder.

Returns:

A new configured ReflectionDiffBuilder.

@Override public ReflectionDiffBuilder<T> get()[source]
public ReflectionDiffBuilder.Builder<T> setDiffBuilder(DiffBuilder<T> diffBuilder)[source]

Sets the DiffBuilder.

Parameters:

diffBuilder – The DiffBuilder.

Returns:

this instance.

public ReflectionDiffBuilder.Builder<T> setExcludeFieldNames(String... excludeFieldNames)[source]

Sets field names to exclude from output. Intended for fields like "password" or "lastModificationDate".

Parameters:

excludeFieldNames – field names to exclude.

Returns:

this instance.