public class AuditLogChange
extends java.lang.Object
AuditLogEntry!
old- and new value for the
updated field. The field is specified by the key.| Constructor | Description |
|---|---|
AuditLogChange(java.lang.Object oldValue,
java.lang.Object newValue,
java.lang.String key) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getKey() |
The key which defines the field that was updated
by this change
|
<T> T |
getNewValue() |
The updated value for the field specified by
getKey(). |
<T> T |
getOldValue() |
The previous value for the field specified by
getKey(). |
int |
hashCode() |
|
java.lang.String |
toString() |
public AuditLogChange(java.lang.Object oldValue,
java.lang.Object newValue,
java.lang.String key)
public <T> T getOldValue()
getKey().T - The expected generic type for this value.
java.lang.ClassCastException - If the type cast to the generic type failspublic <T> T getNewValue()
getKey().T - The expected generic type for this value.
java.lang.ClassCastException - If the type cast to the generic type failspublic java.lang.String getKey()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object