Package ai.chatur.cortex
Record Class BranchChange
java.lang.Object
java.lang.Record
ai.chatur.cortex.BranchChange
- Record Components:
subject- the full subject IRIpredicate- the full predicate IRIobject- the current 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 resourcenewObject- the replacement object, ornullto delete the statement
public record BranchChange(String subject, String predicate, String object, boolean literal, String datatype, String newObject)
extends Record
A reviewer's change to a statement staged on a branch: a deletion, or an edit replacing the
object.
-
Constructor Summary
Constructors -
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.Returns the value of thenewObjectrecord component.object()Returns the value of theobjectrecord component.Returns the value of thepredicaterecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BranchChange
public BranchChange(String subject, String predicate, String object, boolean literal, String datatype, String newObject) Creates an instance of aBranchChangerecord class.- Parameters:
subject- the value for thesubjectrecord componentpredicate- the value for thepredicaterecord componentobject- the value for theobjectrecord componentliteral- the value for theliteralrecord componentdatatype- the value for thedatatyperecord componentnewObject- the value for thenewObjectrecord 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 '=='. -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
predicate
Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord 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
-
newObject
Returns the value of thenewObjectrecord component.- Returns:
- the value of the
newObjectrecord component
-