Record Class FinishResult
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.gitflow.FinishResult
- Record Components:
outcome-FinishResult.Outcome.FINISHED, or a conflict outcome if a merge stopped on conflictssteps- what was done, in order, one readable sentence eachconflicts- conflicting paths when the outcome isCONFLICTSbranch- the branch that was finished
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFinishResult(FinishResult.Outcome outcome, List<String> steps, List<String> conflicts, String branch) Creates an instance of aFinishResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the value of thebranchrecord component.Returns the value of theconflictsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinished()Whether everything was done, so the branch is finished.final inthashCode()Returns a hash code value for this object.outcome()Returns the value of theoutcomerecord component.steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
finished
public boolean finished()Whether everything was done, so the branch is finished. -
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). -
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-
conflicts
Returns the value of theconflictsrecord component.- Returns:
- the value of the
conflictsrecord component
-
branch
Returns the value of thebranchrecord component.- Returns:
- the value of the
branchrecord component
-