Package com.helix.profiler.async
Record Class ProfileComparator.FrameDelta
java.lang.Object
java.lang.Record
com.helix.profiler.async.ProfileComparator.FrameDelta
- Enclosing class:
ProfileComparator
public static record ProfileComparator.FrameDelta(String stackTrace, long countA, long countB, long delta, double percentageChange)
extends Record
Record representing the delta comparison for a specific stack trace.
-
Constructor Summary
ConstructorsConstructorDescriptionFrameDelta(String stackTrace, long countA, long countB, long delta, double percentageChange) Creates an instance of aFrameDeltarecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcountA()Returns the value of thecountArecord component.longcountB()Returns the value of thecountBrecord component.longdelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thepercentageChangerecord component.Returns the value of thestackTracerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FrameDelta
Creates an instance of aFrameDeltarecord class.- Parameters:
stackTrace- the value for thestackTracerecord componentcountA- the value for thecountArecord componentcountB- the value for thecountBrecord componentdelta- the value for thedeltarecord componentpercentageChange- the value for thepercentageChangerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
stackTrace
Returns the value of thestackTracerecord component.- Returns:
- the value of the
stackTracerecord component
-
countA
public long countA()Returns the value of thecountArecord component.- Returns:
- the value of the
countArecord component
-
countB
public long countB()Returns the value of thecountBrecord component.- Returns:
- the value of the
countBrecord component
-
delta
public long delta()Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-
percentageChange
public double percentageChange()Returns the value of thepercentageChangerecord component.- Returns:
- the value of the
percentageChangerecord component
-