Package ai.chatur.cortex
Record Class BranchSubject
java.lang.Object
java.lang.Record
ai.chatur.cortex.BranchSubject
- Record Components:
name- the local name of the subject, for displayuri- the full subject IRIstatements- the staged statements about the subject, sorted by predicate
public record BranchSubject(String name, String uri, List<BranchStatement> statements)
extends Record
The statements staged on a branch about one subject.
-
Constructor Summary
ConstructorsConstructorDescriptionBranchSubject(String name, String uri, List<BranchStatement> statements) Creates an instance of aBranchSubjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thestatementsrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
BranchSubject
Creates an instance of aBranchSubjectrecord class.- Parameters:
name- the value for thenamerecord componenturi- the value for theurirecord componentstatements- the value for thestatementsrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
statements
Returns the value of thestatementsrecord component.- Returns:
- the value of the
statementsrecord component
-