Package org.apache.commons.lang3.builder
Class Diff<T>
java.lang.Object
org.apache.commons.lang3.tuple.Pair<T,T>
 
org.apache.commons.lang3.builder.Diff<T>
- Type Parameters:
- T- The type of object contained within this- Diff. Differences between primitive objects are stored as their Object wrapper equivalent.
- All Implemented Interfaces:
- Serializable,- Comparable<Pair<T,,- T>> - Map.Entry<T,- T> 
A 
Diff contains the differences between two Diffable class
 fields.
 
 Typically, Diffs are retrieved by using a DiffBuilder to
 produce a DiffResult, containing the differences between two objects.
 
- Since:
- 3.3
- See Also:
- 
Field SummaryFields inherited from class org.apache.commons.lang3.tuple.PairEMPTY_ARRAY
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
DiffConstructs a newDifffor the given field name.- Parameters:
- fieldName- the field name
 
 
- 
- 
Method Details- 
getFieldNameGets the name of the field.- Returns:
- the field name
 
- 
getTypeDeprecated.Unused, will be removed in 4.0.0.Gets the type of the field.- Returns:
- the field type
 
- 
setValueThrowsUnsupportedOperationException.- Parameters:
- value- ignored
- Returns:
- nothing
 
- 
toString
 
-