Package io.github.jbastgen.stemma.app.ai
Record Class CoworkContext.ChangeLine
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.ai.CoworkContext.ChangeLine
- Record Components:
status- one letter: the kind of change
- Enclosing class:
CoworkContext
-
Constructor Summary
ConstructorsConstructorDescriptionChangeLine(char status, String path, boolean staged) Creates an instance of aChangeLinerecord 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.path()Returns the value of thepathrecord component.booleanstaged()Returns the value of thestagedrecord component.charstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChangeLine
Creates an instance of aChangeLinerecord class.- Parameters:
status- the value for thestatusrecord componentpath- the value for thepathrecord componentstaged- the value for thestagedrecord 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 '=='. -
status
public char status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
staged
public boolean staged()Returns the value of thestagedrecord component.- Returns:
- the value of the
stagedrecord component
-