Package com.tnsai.planning.tasklist
Record Class ProgressMemory.Learning
java.lang.Object
java.lang.Record
com.tnsai.planning.tasklist.ProgressMemory.Learning
- Record Components:
taskId- the source task IDcontent- the learning content- relevance tagsrecordedAt- when the learning was recorded
- Enclosing interface:
ProgressMemory
public static record ProgressMemory.Learning(String taskId, String content, Set<String> tags, Instant recordedAt)
extends Record
A recorded learning from task execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therecordedAtrecord component.tags()Returns the value of thetagsrecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Learning
Creates an instance of aLearningrecord class.- Parameters:
taskId- the value for thetaskIdrecord componentcontent- the value for thecontentrecord componenttags- the value for thetagsrecord componentrecordedAt- the value for therecordedAtrecord 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). -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
recordedAt
Returns the value of therecordedAtrecord component.- Returns:
- the value of the
recordedAtrecord component
-