Record Class RebaseResult
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.git.api.RebaseResult
- Record Components:
status- what happenedconflicts- paths with conflicts when the rebase stopped onRebaseResult.Status.CONFLICTS: resolve them, stage them and continue (GitRepository.rebaseContinue()), skip the commit, or abort
Outcome of a rebase step.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRebaseResult(RebaseResult.Status status, List<String> conflicts) Creates an instance of aRebaseResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconflictsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanWhether the rebase stopped on a conflict and waits.final inthashCode()Returns a hash code value for this object.static RebaseResultof(RebaseResult.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 rebase stopped on a conflict and waits. -
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
-