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 Summary
ConstructorsConstructorDescriptionResultField(String name, long[] count, long[] localCount, long[] globalCount, RenderProfilerCounter[] statistics, RenderProfilerCounter sortedStatistic) Creates an instance of aResultFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintlong[]count()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.intgetColor()doublegetGlobalPercentage(RenderProfilerCounter statistic) doublegetPercentage(RenderProfilerCounter statistic) long[]Returns the value of theglobalCountrecord component.final inthashCode()Returns a hash code value for this object.long[]Returns the value of thelocalCountrecord component.name()Returns the value of thenamerecord component.Returns the value of thesortedStatisticrecord component.Returns the value of thestatisticsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResultField
public ResultField(String name, long[] count, long[] localCount, long[] globalCount, RenderProfilerCounter[] statistics, RenderProfilerCounter sortedStatistic) Creates an instance of aResultFieldrecord class.- Parameters:
name- the value for thenamerecord componentcount- the value for thecountrecord componentlocalCount- the value for thelocalCountrecord componentglobalCount- the value for theglobalCountrecord componentstatistics- the value for thestatisticsrecord componentsortedStatistic- the value for thesortedStatisticrecord component
-
-
Method Details
-
getPercentage
-
getGlobalPercentage
-
compareTo
- Specified by:
compareToin interfaceComparable<VeilRenderProfilerImpl.ResultField>
-
getColor
public int getColor() -
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
count
public long[] count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
localCount
public long[] localCount()Returns the value of thelocalCountrecord component.- Returns:
- the value of the
localCountrecord component
-
globalCount
public long[] globalCount()Returns the value of theglobalCountrecord component.- Returns:
- the value of the
globalCountrecord component
-
statistics
Returns the value of thestatisticsrecord component.- Returns:
- the value of the
statisticsrecord component
-
sortedStatistic
Returns the value of thesortedStatisticrecord component.- Returns:
- the value of the
sortedStatisticrecord component
-