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 aResultField
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
long[]
count()
Returns the value of thecount
record component.final boolean
Indicates whether some other object is "equal to" this one.int
getColor()
double
getGlobalPercentage
(RenderProfilerCounter statistic) double
getPercentage
(RenderProfilerCounter statistic) long[]
Returns the value of theglobalCount
record component.final int
hashCode()
Returns a hash code value for this object.long[]
Returns the value of thelocalCount
record component.name()
Returns the value of thename
record component.Returns the value of thesortedStatistic
record component.Returns the value of thestatistics
record component.final String
toString()
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 aResultField
record class.- Parameters:
name
- the value for thename
record componentcount
- the value for thecount
record componentlocalCount
- the value for thelocalCount
record componentglobalCount
- the value for theglobalCount
record componentstatistics
- the value for thestatistics
record componentsortedStatistic
- the value for thesortedStatistic
record component
-
-
Method Details
-
getPercentage
-
getGlobalPercentage
-
compareTo
- Specified by:
compareTo
in 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 thename
record component.- Returns:
- the value of the
name
record component
-
count
public long[] count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
localCount
public long[] localCount()Returns the value of thelocalCount
record component.- Returns:
- the value of the
localCount
record component
-
globalCount
public long[] globalCount()Returns the value of theglobalCount
record component.- Returns:
- the value of the
globalCount
record component
-
statistics
Returns the value of thestatistics
record component.- Returns:
- the value of the
statistics
record component
-
sortedStatistic
Returns the value of thesortedStatistic
record component.- Returns:
- the value of the
sortedStatistic
record component
-