T - The type of object contained within this Diff. Differences
between primitive objects are stored as their Object wrapper
equivalent.public abstract class Diff<T> extends Pair<T,T>
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.
EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFieldName()
Gets the name of the field.
|
java.lang.reflect.Type |
getType()
Gets the type of the field.
|
T |
setValue(T value)
Throws
UnsupportedOperationException. |
java.lang.String |
toString()
Returns a
String representation of the Diff, with the
following format: |
public final java.lang.reflect.Type getType()
public final java.lang.String getFieldName()
public final java.lang.String toString()
String representation of the Diff, with the
following format:
[fieldname: left-value, right-value]
Copyright © 2010 - 2023 Adobe. All Rights Reserved