Package ai.chatur.cortex
Record Class BranchStatement
java.lang.Object
java.lang.Record
ai.chatur.cortex.BranchStatement
- Record Components:
predicate- the predicate in prefixed short form, for displaypredicateUri- the full predicate IRIobject- the object: the full IRI of a resource, or the lexical form of a literalliteral- whether the object is a literaldatatype- the datatype IRI of a literal object, ornullfor a resource
public record BranchStatement(String predicate, String predicateUri, String object, boolean literal, String datatype)
extends Record
A statement staged on a branch, carrying the raw node values needed to round-trip
edits back to the staged graph.-
Constructor Summary
ConstructorsConstructorDescriptionBranchStatement(String predicate, String predicateUri, String object, boolean literal, String datatype) Creates an instance of aBranchStatementrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondatatype()Returns the value of thedatatyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanliteral()Returns the value of theliteralrecord component.object()Returns the value of theobjectrecord component.Returns the value of thepredicaterecord component.Returns the value of thepredicateUrirecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BranchStatement
public BranchStatement(String predicate, String predicateUri, String object, boolean literal, String datatype) Creates an instance of aBranchStatementrecord class.- Parameters:
predicate- the value for thepredicaterecord componentpredicateUri- the value for thepredicateUrirecord componentobject- the value for theobjectrecord componentliteral- the value for theliteralrecord componentdatatype- the value for thedatatyperecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
predicate
Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-
predicateUri
Returns the value of thepredicateUrirecord component.- Returns:
- the value of the
predicateUrirecord component
-
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
literal
public boolean literal()Returns the value of theliteralrecord component.- Returns:
- the value of the
literalrecord component
-
datatype
Returns the value of thedatatyperecord component.- Returns:
- the value of the
datatyperecord component
-