Package io.yupiik.batch.ui.backend.model
Record Class Step
java.lang.Object
java.lang.Record
io.yupiik.batch.ui.backend.model.Step
public record Step(String id, String name, Status status, String comment, OffsetDateTime started, OffsetDateTime finished, String previousId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStep(String id, String name, Status status, String comment, OffsetDateTime started, OffsetDateTime finished, String previousId) Creates an instance of aSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.finished()Returns the value of thefinishedrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.Returns the value of thepreviousIdrecord component.started()Returns the value of thestartedrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Step
public Step(String id, String name, Status status, String comment, OffsetDateTime started, OffsetDateTime finished, String previousId) Creates an instance of aSteprecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentstatus- the value for thestatusrecord componentcomment- the value for thecommentrecord componentstarted- the value for thestartedrecord componentfinished- the value for thefinishedrecord componentpreviousId- the value for thepreviousIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
started
Returns the value of thestartedrecord component.- Returns:
- the value of the
startedrecord component
-
finished
Returns the value of thefinishedrecord component.- Returns:
- the value of the
finishedrecord component
-
previousId
Returns the value of thepreviousIdrecord component.- Returns:
- the value of the
previousIdrecord component
-