Record Class Step.TimingStepData
java.lang.Object
java.lang.Record
net.covers1624.coffeegrinder.debug.Step.TimingStepData
- All Implemented Interfaces:
Step.StepData
- Enclosing class:
Step
public static record Step.TimingStepData(long start, long end)
extends Record
implements Step.StepData
-
Constructor Summary
ConstructorsConstructorDescriptionTimingStepData(long start, long end) Creates an instance of aTimingStepDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.longfinal inthashCode()Returns a hash code value for this object.booleanlongstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.covers1624.coffeegrinder.debug.Step.StepData
hasChanges, hasError
-
Constructor Details
-
TimingStepData
public TimingStepData(long start, long end) Creates an instance of aTimingStepDatarecord class.- Parameters:
start- the value for thestartrecord componentend- the value for theendrecord component
-
-
Method Details
-
getDuration
public long getDuration()- Specified by:
getDurationin interfaceStep.StepData
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceStep.StepData
-
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 with '=='. -
start
public long start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public long end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-