Package net.dv8tion.jda.api.audit
Class AuditLogChange
java.lang.Object
net.dv8tion.jda.api.audit.AuditLogChange
Plain-Old-Java-Object (POJO) representing a single
change for an
This object holds the
AuditLogEntry!
This object holds the
old- and new value for the
updated field. The field is specified by the key.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AuditLogChange
-
-
Method Details
-
getOldValue
The previous value for the field specified bygetKey().- Type Parameters:
T- The expected generic type for this value.
This will be used to cast the value.- Returns:
- The old value
- Throws:
ClassCastException- If the type cast to the generic type fails
-
getNewValue
The updated value for the field specified bygetKey().- Type Parameters:
T- The expected generic type for this value.
This will be used to cast the value.- Returns:
- The new value
- Throws:
ClassCastException- If the type cast to the generic type fails
-
getKey
The key which defines the field that was updated by this change- Returns:
- The key
-
hashCode
public int hashCode() -
equals
-
toString
-