Record Class VeilRenderProfilerImpl.ResultField

java.lang.Object
java.lang.Record
foundry.veil.impl.client.render.profiler.VeilRenderProfilerImpl.ResultField
All Implemented Interfaces:
Comparable<VeilRenderProfilerImpl.ResultField>
Enclosing class:
VeilRenderProfilerImpl

public static record VeilRenderProfilerImpl.ResultField(String name, long[] count, long[] localCount, long[] globalCount, RenderProfilerCounter[] statistics, RenderProfilerCounter sortedStatistic) extends Record implements Comparable<VeilRenderProfilerImpl.ResultField>
  • Constructor Details

    • ResultField

      public ResultField(String name, long[] count, long[] localCount, long[] globalCount, RenderProfilerCounter[] statistics, RenderProfilerCounter sortedStatistic)
      Creates an instance of a ResultField record class.
      Parameters:
      name - the value for the name record component
      count - the value for the count record component
      localCount - the value for the localCount record component
      globalCount - the value for the globalCount record component
      statistics - the value for the statistics record component
      sortedStatistic - the value for the sortedStatistic record component
  • Method Details

    • getPercentage

      public double getPercentage(RenderProfilerCounter statistic)
    • getGlobalPercentage

      public double getGlobalPercentage(RenderProfilerCounter statistic)
    • compareTo

      public int compareTo(VeilRenderProfilerImpl.ResultField other)
      Specified by:
      compareTo in interface Comparable<VeilRenderProfilerImpl.ResultField>
    • getColor

      public int getColor()
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • count

      public long[] count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component
    • localCount

      public long[] localCount()
      Returns the value of the localCount record component.
      Returns:
      the value of the localCount record component
    • globalCount

      public long[] globalCount()
      Returns the value of the globalCount record component.
      Returns:
      the value of the globalCount record component
    • statistics

      public RenderProfilerCounter[] statistics()
      Returns the value of the statistics record component.
      Returns:
      the value of the statistics record component
    • sortedStatistic

      public RenderProfilerCounter sortedStatistic()
      Returns the value of the sortedStatistic record component.
      Returns:
      the value of the sortedStatistic record component