Diff. Differences between primitive objects are stored as their Object wrapper equivalent.
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.
| Modifier and Type | Field and Description |
|---|---|
| private final String | fieldName
The field name. |
| private static final long | |
| private final Type | type
The field type. |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final String | |
| public final Type | Returns: the field type.
Deprecated
Unused, will be removed in 4.0.0.
Gets the type of the field. |
| public final T | Returns: ThrowsUnsupportedOperationException.ignored. value)Implements java. Throws |
| public final String | Returns: the string representation.Overrides org. Returns a [fieldname: left-value, right-value] |
| fieldName | back to summary |
|---|---|
| private final String fieldName The field name. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| type | back to summary |
|---|---|
| private final Type type The field type. | |
| Diff | back to summary |
|---|---|
| protected Diff(final String fieldName) Constructs a new
| |
| Diff | back to summary |
|---|---|
| pack-priv Diff(final String fieldName, final Type type) | |
| getFieldName | back to summary |
|---|---|
| public final String getFieldName() Gets the name of the field.
| |
| getType | back to summary |
|---|---|
| public final Type getType()
Deprecated Unused, will be removed in 4.0.0. Gets the type of the field.
| |
| setValue | back to summary |
|---|---|
| public final T setValue(final T value) Implements java. Throws
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides org. Returns a [fieldname: left-value, right-value] | |