Class AuditLogChangeImpl<T>
- java.lang.Object
-
- org.javacord.core.entity.auditlog.AuditLogChangeImpl<T>
-
- Type Parameters:
T
- The type of the changed param.
- All Implemented Interfaces:
AuditLogChange<T>
public class AuditLogChangeImpl<T> extends Object implements AuditLogChange<T>
The implementation ofAuditLogChange
.
-
-
Constructor Summary
Constructors Constructor Description AuditLogChangeImpl(AuditLogChangeType type, T oldValue, T newValue)
Creates a new audit log change.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<T>
getNewValue()
Optional<T>
getOldValue()
AuditLogChangeType
getType()
-
-
-
Constructor Detail
-
AuditLogChangeImpl
public AuditLogChangeImpl(AuditLogChangeType type, T oldValue, T newValue)
Creates a new audit log change.- Parameters:
type
- The type of the change.oldValue
- The old value.newValue
- The new value.
-
-
Method Detail
-
getType
public AuditLogChangeType getType()
- Specified by:
getType
in interfaceAuditLogChange<T>
-
getOldValue
public Optional<T> getOldValue()
- Specified by:
getOldValue
in interfaceAuditLogChange<T>
-
getNewValue
public Optional<T> getNewValue()
- Specified by:
getNewValue
in interfaceAuditLogChange<T>
-
-