Record Class FileIoSample

java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.FileIoSample
Record Components:
duration -
path -
bytes -

public record FileIoSample(Duration duration, @Nullable String path, long bytes) extends Record
Mappings:
Namespace Name
official azx
intermediary net/minecraft/class_6523
named net/minecraft/util/profiling/jfr/sample/FileIoSample
official a
intermediary comp_25
named duration
official b
intermediary comp_26
named path
official c
intermediary comp_27
named bytes
  • Field Details

    • duration

      private final Duration duration
      The field for the duration record component.
    • path

      @Nullable private final @Nullable String path
      The field for the path record component.
    • bytes

      private final long bytes
      The field for the bytes record component.
  • Constructor Details

  • Method Details

    • toStatistics

      public static FileIoSample.Statistics toStatistics(Duration duration, List<FileIoSample> samples)
      Mappings:
      Namespace Name Mixin selector
      official a Lazx;a(Ljava/time/Duration;Ljava/util/List;)Lazx$a;
      intermediary method_38034 Lnet/minecraft/class_6523;method_38034(Ljava/time/Duration;Ljava/util/List;)Lnet/minecraft/class_6523$class_6524;
      named toStatistics Lnet/minecraft/util/profiling/jfr/sample/FileIoSample;toStatistics(Ljava/time/Duration;Ljava/util/List;)Lnet/minecraft/util/profiling/jfr/sample/FileIoSample$Statistics;
    • 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 '=='.
      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.
    • duration

      public Duration duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • path

      @Nullable public @Nullable String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • bytes

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