Record Class Step.CodeStepData
java.lang.Object
java.lang.Record
net.covers1624.coffeegrinder.debug.Step.CodeStepData
- All Implemented Interfaces:
Step.StepData
- Enclosing class:
Step
public static record Step.CodeStepData(CodeSnapshot pre, @Nullable CodeSnapshot post)
extends Record
implements Step.StepData
-
Constructor Summary
ConstructorsConstructorDescriptionCodeStepData(CodeSnapshot pre, @Nullable CodeSnapshot post) Creates an instance of aCodeStepDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longbooleanhasChanges(Step step) booleanhasError()final inthashCode()Returns a hash code value for this object.booleanpost()Returns the value of thepostrecord component.pre()Returns the value of theprerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CodeStepData
Creates an instance of aCodeStepDatarecord class.- Parameters:
pre- the value for theprerecord componentpost- the value for thepostrecord component
-
-
Method Details
-
post
Returns the value of thepostrecord component.- Returns:
- the value of the
postrecord component
-
getDuration
public long getDuration()- Specified by:
getDurationin interfaceStep.StepData
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceStep.StepData
-
hasChanges
- Specified by:
hasChangesin interfaceStep.StepData
-
hasError
public boolean hasError()- Specified by:
hasErrorin 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 withObjects::equals(Object,Object). -
pre
Returns the value of theprerecord component.- Returns:
- the value of the
prerecord component
-