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 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 a AuditEntry record class.
      Parameters:
      playerId - the value for the playerId record component
      module - the value for the module record component
      action - the value for the action record component
      description - the value for the description record component
      auditLevel - the value for the auditLevel record component
      timestamp - the value for the timestamp record 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

      public static AuditEntry of(@NotNull @NotNull String module, @NotNull @NotNull String action)
    • 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

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • playerId

      @Nullable public @Nullable String playerId()
      Returns the value of the playerId record component.
      Returns:
      the value of the playerId record component
    • module

      @NotNull public @NotNull String module()
      Returns the value of the module record component.
      Returns:
      the value of the module record component
    • action

      @NotNull public @NotNull String action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • description

      @Nullable public @Nullable String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • auditLevel

      @NotNull public @NotNull AuditLevel auditLevel()
      Returns the value of the auditLevel record component.
      Returns:
      the value of the auditLevel record component
    • timestamp

      public long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component