Record Class LogFileCompressor.LogId

java.lang.Object
java.lang.Record
net.minecraft.util.logging.LogFileCompressor.LogId
Record Components:
date -
index -
Enclosing class:
LogFileCompressor

public static record LogFileCompressor.LogId(LocalDate date, int index) extends Record
Mappings:
Namespace Name
official baa$c
intermediary net/minecraft/class_7929$class_7932
named net/minecraft/util/logging/LogFileCompressor$LogId
official a
intermediary comp_1158
named date
official b
intermediary comp_1159
named index
  • Field Details

    • date

      private final LocalDate date
      The field for the date record component.
    • index

      private final int index
      The field for the index record component.
    • DATE_TIME_FORMATTER

      private static final DateTimeFormatter DATE_TIME_FORMATTER
      Mappings:
      Namespace Name Mixin selector
      official c Lbaa$c;c:Ljava/time/format/DateTimeFormatter;
      intermediary field_41293 Lnet/minecraft/class_7929$class_7932;field_41293:Ljava/time/format/DateTimeFormatter;
      named DATE_TIME_FORMATTER Lnet/minecraft/util/logging/LogFileCompressor$LogId;DATE_TIME_FORMATTER:Ljava/time/format/DateTimeFormatter;
  • Constructor Details

    • LogId

      public LogId(LocalDate localDate, int int2)
  • Method Details

    • fromFileName

      @Nullable public static @Nullable LogFileCompressor.LogId fromFileName(String fileName)
      Mappings:
      Namespace Name Mixin selector
      official a Lbaa$c;a(Ljava/lang/String;)Lbaa$c;
      intermediary method_47558 Lnet/minecraft/class_7929$class_7932;method_47558(Ljava/lang/String;)Lnet/minecraft/class_7929$class_7932;
      named fromFileName Lnet/minecraft/util/logging/LogFileCompressor$LogId;fromFileName(Ljava/lang/String;)Lnet/minecraft/util/logging/LogFileCompressor$LogId;
    • toString

      public 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
    • getFileName

      public String getFileName(String extension)
      Mappings:
      Namespace Name Mixin selector
      official b Lbaa$c;b(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_47559 Lnet/minecraft/class_7929$class_7932;method_47559(Ljava/lang/String;)Ljava/lang/String;
      named getFileName Lnet/minecraft/util/logging/LogFileCompressor$LogId;getFileName(Ljava/lang/String;)Ljava/lang/String;
    • 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 object)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • date

      public LocalDate date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • index

      public int index()
      Returns the value of the index record component.
      Returns:
      the value of the index record component