Record Class GoalCommitLedger.RepoChanges
java.lang.Object
java.lang.Record
network.ike.plugin.ws.GoalCommitLedger.RepoChanges
- Record Components:
label- the repository label shown in reportscommits- the goal-authored commits, newest first (git logorder)residue- stripped porcelain status lines left uncommitted after the run — empty on a healthy publish (#919)
- Enclosing class:
GoalCommitLedger
-
Constructor Summary
ConstructorsConstructorDescriptionRepoChanges(String label, List<GoalCommitLedger.Commit> commits, List<String> residue) Creates an instance of aRepoChangesrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommits()Returns the value of thecommitsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanWhether the goal authored at least one commit in this repository.final inthashCode()Returns a hash code value for this object.booleanWhether files were left uncommitted in this repository.label()Returns the value of thelabelrecord component.residue()Returns the value of theresiduerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
hasCommits
public boolean hasCommits()Whether the goal authored at least one commit in this repository.- Returns:
truewhencommitsis non-empty
-
hasResidue
public boolean hasResidue()Whether files were left uncommitted in this repository.- Returns:
truewhenresidueis non-empty
-
toString
-
hashCode
-
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). -
label
-
commits
-
residue
-