Record Class AuditEntry
java.lang.Object
java.lang.Record
tech.skworks.tachyon.api.audit.AuditEntry
public record AuditEntry(@Nullable String playerId, @NotNull String module, @NotNull String action, @Nullable String description, @NotNull AuditLevel auditLevel, long timestamp)
extends Record
Short class explaination
Long class explaination with @link if needed
Project Tachyon
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 24/08/2026
-
Constructor Summary
ConstructorsConstructorDescriptionAuditEntry(@Nullable String playerId, @NotNull String module, @NotNull String action, @Nullable String description, @NotNull AuditLevel auditLevel, long timestamp) Creates an instance of aAuditEntryrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringaction()Returns the value of theactionrecord component.@NotNull AuditLevelReturns the value of theauditLevelrecord component.@Nullable StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringmodule()Returns the value of themodulerecord component.static AuditEntrystatic AuditEntrystatic AuditEntryof(@NotNull String module, @NotNull String action, @Nullable String description, @NotNull AuditLevel auditLevel) static AuditEntryof(@NotNull String module, @NotNull String action, @NotNull AuditLevel auditLevel) static AuditEntrystatic AuditEntryof(@NotNull UUID playerId, @NotNull String module, @NotNull String action, @Nullable String description) static AuditEntryof(@NotNull UUID playerId, @NotNull String module, @NotNull String action, @Nullable String description, @NotNull AuditLevel auditLevel) static AuditEntryof(@NotNull UUID playerId, @NotNull String module, @NotNull String action, @NotNull AuditLevel auditLevel) @Nullable StringplayerId()Returns the value of theplayerIdrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuditEntry
public AuditEntry(@Nullable @Nullable String playerId, @NotNull @NotNull String module, @NotNull @NotNull String action, @Nullable @Nullable String description, @NotNull @NotNull AuditLevel auditLevel, long timestamp) Creates an instance of aAuditEntryrecord class.- Parameters:
playerId- the value for theplayerIdrecord componentmodule- the value for themodulerecord componentaction- the value for theactionrecord componentdescription- the value for thedescriptionrecord componentauditLevel- the value for theauditLevelrecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
of
public static AuditEntry of(@NotNull @NotNull UUID playerId, @NotNull @NotNull String module, @NotNull @NotNull String action, @Nullable @Nullable String description) -
of
public static AuditEntry of(@NotNull @NotNull UUID playerId, @NotNull @NotNull String module, @NotNull @NotNull String action) -
of
-
of
public static AuditEntry of(@NotNull @NotNull String module, @NotNull @NotNull String action, @Nullable @Nullable String description) -
of
public static AuditEntry of(@NotNull @NotNull UUID playerId, @NotNull @NotNull String module, @NotNull @NotNull String action, @Nullable @Nullable String description, @NotNull @NotNull AuditLevel auditLevel) -
of
public static AuditEntry of(@NotNull @NotNull UUID playerId, @NotNull @NotNull String module, @NotNull @NotNull String action, @NotNull @NotNull AuditLevel auditLevel) -
of
public static AuditEntry of(@NotNull @NotNull String module, @NotNull @NotNull String action, @NotNull @NotNull AuditLevel auditLevel) -
of
public static AuditEntry of(@NotNull @NotNull String module, @NotNull @NotNull String action, @Nullable @Nullable String description, @NotNull @NotNull AuditLevel auditLevel) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
playerId
Returns the value of theplayerIdrecord component.- Returns:
- the value of the
playerIdrecord component
-
module
Returns the value of themodulerecord component.- Returns:
- the value of the
modulerecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
auditLevel
Returns the value of theauditLevelrecord component.- Returns:
- the value of the
auditLevelrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-