Package dev.enola.tool.todo
Record Class ToDo
java.lang.Object
java.lang.Record
dev.enola.tool.todo.ToDo
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionToDo(URI id, String title, Optional<String> description, ImmutableList<String> tags, ImmutableMap<String, String> attributes, Optional<Instant> created, Optional<Instant> completed, Optional<Byte> priority, Optional<URI> assignee, Optional<URI> parent) Creates an instance of aToDorecord class. -
Method Summary
Modifier and TypeMethodDescriptionassignee()Returns the value of theassigneerecord component.Returns the value of theattributesrecord component.static ToDo.Builderbuilder()Returns the value of thecompletedrecord component.created()Returns the value of thecreatedrecord component.Returns the value of thedescriptionrecord 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.booleanparent()Returns the value of theparentrecord component.priority()Returns the value of thepriorityrecord component.tags()Returns the value of thetagsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToDo
public ToDo(URI id, String title, Optional<String> description, ImmutableList<String> tags, ImmutableMap<String, String> attributes, Optional<Instant> created, Optional<Instant> completed, Optional<Byte> priority, Optional<URI> assignee, Optional<URI> parent) Creates an instance of aToDorecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componenttags- the value for thetagsrecord componentattributes- the value for theattributesrecord componentcreated- the value for thecreatedrecord componentcompleted- the value for thecompletedrecord componentpriority- the value for thepriorityrecord componentassignee- the value for theassigneerecord componentparent- the value for theparentrecord component
-
-
Method Details
-
isCompleted
-
builder
-
toBuilder
-
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
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
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
completed
Returns the value of thecompletedrecord component.- Returns:
- the value of the
completedrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
assignee
Returns the value of theassigneerecord component.- Returns:
- the value of the
assigneerecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-