Record Class RebaseStep
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.git.api.RebaseStep
- Record Components:
action- what to do with the commitcommitId- the commitmessage- the new message forRebaseAction.REWORD; ignored for the other actions
One line of the to-do list of an interactive rebase.
-
Constructor Summary
ConstructorsConstructorDescriptionRebaseStep(RebaseAction action, String commitId, String message) Creates an instance of aRebaseSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.commitId()Returns the value of thecommitIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.static RebaseStepof(RebaseAction action, String commitId) A step with an action other thanREWORD.static RebaseStepA step that keeps the commit as it is.static RebaseStepA step that takes the commit with a new message.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
pick
A step that keeps the commit as it is. -
of
A step with an action other thanREWORD. -
reword
A step that takes the commit with a new message. -
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). -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
commitId
Returns the value of thecommitIdrecord component.- Returns:
- the value of the
commitIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-