Package ai.chatur.cortex
Record Class BranchRename
java.lang.Object
java.lang.Record
ai.chatur.cortex.BranchRename
- Record Components:
subject- the current full subject IRInewSubject- the replacement IRI
A reviewer's rename of a subject staged on a branch: statements referencing the IRI as object are
rewritten to the new IRI, and statements carrying it as subject are removed.
-
Constructor Summary
ConstructorsConstructorDescriptionBranchRename(String subject, String newSubject) Creates an instance of aBranchRenamerecord 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.Returns the value of thenewSubjectrecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BranchRename
Creates an instance of aBranchRenamerecord class.- Parameters:
subject- the value for thesubjectrecord componentnewSubject- the value for thenewSubjectrecord 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). -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
newSubject
Returns the value of thenewSubjectrecord component.- Returns:
- the value of the
newSubjectrecord component
-