Record Class Task
java.lang.Object
java.lang.Record
fr.tiogars.chat.client.Task
- Record Components:
id- persistent identifiercode- unique template codelabel- display labeldescription- optional descriptioncreatedDate- creation timestamplastModifiedDate- last modification timestampcreatedBy- username at creationlastModifiedBy- username at the last modification
public record Task(Long id, String code, String label, String description, Instant createdDate, Instant lastModifiedDate, String createdBy, String lastModifiedBy, TaskStatus status, TaskPriority priority, LocalDate dueDate, String assignedTo, List<Long> tagIds, Long nomenclatureId)
extends Record
Represents a Task returned by the Task API.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionTask(Long id, String code, String label, String description, Instant createdDate, Instant lastModifiedDate) Creates a template without audit actors for compatibility with older API responses.Task(Long id, String code, String label, String description, Instant createdDate, Instant lastModifiedDate, String createdBy, String lastModifiedBy) Task(Long id, String code, String label, String description, Instant createdDate, Instant lastModifiedDate, String createdBy, String lastModifiedBy, TaskStatus status, TaskPriority priority, LocalDate dueDate, String assignedTo, List<Long> tagIds, Long nomenclatureId) Creates an instance of aTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignedTorecord component.code()Returns the value of thecoderecord component.Returns the value of thecreatedByrecord component.Returns the value of thecreatedDaterecord component.Returns the value of thedescriptionrecord component.dueDate()Returns the value of thedueDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.Returns the value of thelastModifiedByrecord component.Returns the value of thelastModifiedDaterecord component.Returns the value of thenomenclatureIdrecord component.priority()Returns the value of thepriorityrecord component.status()Returns the value of thestatusrecord component.tagIds()Returns the value of thetagIdsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Task
public Task(Long id, String code, String label, String description, Instant createdDate, Instant lastModifiedDate, String createdBy, String lastModifiedBy, TaskStatus status, TaskPriority priority, LocalDate dueDate, String assignedTo, List<Long> tagIds, Long nomenclatureId) Creates an instance of aTaskrecord class.- Parameters:
id- the value for theidrecord componentcode- the value for thecoderecord componentlabel- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componentcreatedDate- the value for thecreatedDaterecord componentlastModifiedDate- the value for thelastModifiedDaterecord componentcreatedBy- the value for thecreatedByrecord componentlastModifiedBy- the value for thelastModifiedByrecord componentstatus- the value for thestatusrecord componentpriority- the value for thepriorityrecord componentdueDate- the value for thedueDaterecord componentassignedTo- the value for theassignedTorecord componenttagIds- the value for thetagIdsrecord componentnomenclatureId- the value for thenomenclatureIdrecord component
-
Task
-
Task
public Task(Long id, String code, String label, String description, Instant createdDate, Instant lastModifiedDate) Creates a template without audit actors for compatibility with older API responses.- Parameters:
id- persistent identifiercode- unique template codelabel- display labeldescription- optional descriptioncreatedDate- creation timestamplastModifiedDate- last modification timestamp
-
-
Method Details
-
toString
-
hashCode
-
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
-
code
-
label
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
lastModifiedDate
Returns the value of thelastModifiedDaterecord component.- Returns:
- the value of the
lastModifiedDaterecord component
-
createdBy
-
lastModifiedBy
Returns the value of thelastModifiedByrecord component.- Returns:
- the value of the
lastModifiedByrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
dueDate
Returns the value of thedueDaterecord component.- Returns:
- the value of the
dueDaterecord component
-
assignedTo
Returns the value of theassignedTorecord component.- Returns:
- the value of the
assignedTorecord component
-
tagIds
-
nomenclatureId
Returns the value of thenomenclatureIdrecord component.- Returns:
- the value of the
nomenclatureIdrecord component
-