Record Class SequenceResult
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.git.api.SequenceResult
- Record Components:
status- what happenedconflicts- paths with conflicts when it stopped onSequenceResult.Status.CONFLICTS: resolve them and stage them, thenGitRepository.sequenceContinue(), or skip the commit, or abortapplied- commits that were made so farskipped- commits that were left out so far: they changed nothing (already there) or were skipped on requestremaining- commits that are still to do after the one that stopped (0 whenSequenceResult.Status.DONE)
public record SequenceResult(SequenceResult.Status status, List<String> conflicts, int applied, int skipped, int remaining)
extends Record
Outcome of a cherry-pick or revert, or of a step after a conflict.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow a cherry-pick or revert ended. -
Constructor Summary
ConstructorsConstructorDescriptionSequenceResult(SequenceResult.Status status, List<String> conflicts, int applied, int skipped, int remaining) Creates an instance of aSequenceResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintapplied()Returns the value of theappliedrecord component.Returns the value of theconflictsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanWhether the sequence stopped on a conflict and waits.final inthashCode()Returns a hash code value for this object.intReturns the value of theremainingrecord component.intskipped()Returns the value of theskippedrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SequenceResult
public SequenceResult(SequenceResult.Status status, List<String> conflicts, int applied, int skipped, int remaining) Creates an instance of aSequenceResultrecord class.
-
-
Method Details
-
hasConflicts
public boolean hasConflicts()Whether the sequence 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
applied
public int applied()Returns the value of theappliedrecord component.- Returns:
- the value of the
appliedrecord component
-
skipped
public int skipped()Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-
remaining
public int remaining()Returns the value of theremainingrecord component.- Returns:
- the value of the
remainingrecord component
-