Package org.apache.commons.lang3.builder
Class DiffBuilder.Builder<T>
java.lang.Object
org.apache.commons.lang3.builder.DiffBuilder.Builder<T>
- Type Parameters:
- T- type of the left and right object.
- Enclosing class:
- DiffBuilder<T>
Constructs a new instance.
- Since:
- 3.15.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds a new configuredDiffBuilder.Sets the left object.Sets the right object.setStyle(ToStringStyle style) Sets the style will to use when outputting the objects,nulluses the default.setTestObjectsEquals(boolean testObjectsEquals) Sets whether to test if left and right are the same or equal.setToStringFormat(String toStringFormat) Sets the two-argument format string forString.format(String, Object...), for example"%s differs from %s".
- 
Constructor Details- 
Builderpublic Builder()Constructs a new instance.
 
- 
- 
Method Details- 
buildBuilds a new configuredDiffBuilder.- Returns:
- a new configured DiffBuilder.
 
- 
setLeftSets the left object.- Parameters:
- left- the left object.
- Returns:
- thisinstance.
 
- 
setRightSets the right object.- Parameters:
- right- the left object.
- Returns:
- thisinstance.
 
- 
setStyleSets the style will to use when outputting the objects,nulluses the default.- Parameters:
- style- the style to use when outputting the objects,- nulluses the default.
- Returns:
- thisinstance.
 
- 
setTestObjectsEqualsSets whether to test if left and right are the same or equal. All of the append(fieldName, left, right) methods will abort without creating a fieldDiffif the trivially equal test is enabled and returns true. The result of this test is never changed throughout the life of thisDiffBuilder.- Parameters:
- testObjectsEquals- If true, this will test if lhs and rhs are the same or equal. All of the append(fieldName, left, right) methods will abort without creating a field- Diffif the trivially equal test is enabled and returns true. The result of this test is never changed throughout the life of this- DiffBuilder.
- Returns:
- thisinstance.
 
- 
setToStringFormatSets the two-argument format string forString.format(String, Object...), for example"%s differs from %s".- Parameters:
- toStringFormat-- nulluses the default.
- Returns:
- thisinstance.
 
 
-