Record Class MergeResult
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.git.api.MergeResult
- Record Components:
status- what happenedconflicts- paths with conflicts; non-empty only forMergeResult.Status.CONFLICTING. The repository is then in the merging state: resolve, stage and commit, or callGitRepository.abortMerge(). (Not forMergeMode.SQUASH: that merge is rolled back, nothing is in progress.)
Outcome of a merge or pull.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMergeResult(MergeResult.Status status, List<String> conflicts) Creates an instance of aMergeResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconflictsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanWhether the merge stopped on conflicts and waits for them to be resolved.final inthashCode()Returns a hash code value for this object.static MergeResultof(MergeResult.Status status) A result without conflicts.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
of
A result without conflicts. -
hasConflicts
public boolean hasConflicts()Whether the merge stopped on conflicts and waits for them to be resolved. -
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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
conflicts
Returns the value of theconflictsrecord component.- Returns:
- the value of the
conflictsrecord component
-