Package io.yupiik.batch.ui.backend.model
Record Class Job
java.lang.Object
java.lang.Record
io.yupiik.batch.ui.backend.model.Job
public record Job(String id, String name, Status status, String comment, OffsetDateTime started, OffsetDateTime finished, List<Step> steps)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionJob(String id, String name, Status status, String comment, OffsetDateTime started, OffsetDateTime finished, List<Step> steps)Creates an instance of aJobrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.booleanIndicates whether some other object is "equal to" this one.finished()Returns the value of thefinishedrecord component.inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.started()Returns the value of thestartedrecord component.status()Returns the value of thestatusrecord component.steps()Returns the value of thestepsrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Job
public Job(String id, String name, Status status, String comment, OffsetDateTime started, OffsetDateTime finished, List<Step> steps)Creates an instance of aJobrecord 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 componentsteps- the value for thestepsrecord 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
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-