Record Class LocalOutcome
java.lang.Object
java.lang.Record
network.ike.plugin.release.local.LocalOutcome
- Record Components:
tag- the created git tag (e.g.,"v25")releaseCommitted- whether a release commit was created on therelease/<version>branch (false if resuming and the commit was already present)merged- whetherrelease/<version>was merged back tomainpostBumped- whethermainreceived the post-release bump commit
public record LocalOutcome(String tag, boolean releaseCommitted, boolean merged, boolean postBumped)
extends Record
Outcome of the
LocalPhase — the local-only release work
(POM rewrites, commit, tag, merge to main, post-release bump).
By the time this record is constructed, the irreversibility
boundary at B18 (git tag v<version>) has passed and the
release commit + tag + restore + merge + post-bump are all in
place locally. Externally-visible work (deploys, push,
GitHub Release) happens in later phases.
The handoff §6.3 anticipates additional fields
(releaseCommit, mergeCommit, postBumpCommit
SHAs, stagingDir for downstream site work). Those are
added when consumers need them; for Commit 4 the flags below
record which sub-steps ran.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalOutcome(String tag, boolean releaseCommitted, boolean merged, boolean postBumped) Creates an instance of aLocalOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmerged()Returns the value of themergedrecord component.booleanReturns the value of thepostBumpedrecord component.booleanReturns the value of thereleaseCommittedrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalOutcome
Creates an instance of aLocalOutcomerecord class.- Parameters:
tag- the value for thetagrecord componentreleaseCommitted- the value for thereleaseCommittedrecord componentmerged- the value for themergedrecord componentpostBumped- the value for thepostBumpedrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
tag
-
releaseCommitted
public boolean releaseCommitted()Returns the value of thereleaseCommittedrecord component.- Returns:
- the value of the
releaseCommittedrecord component
-
merged
-
postBumped
public boolean postBumped()Returns the value of thepostBumpedrecord component.- Returns:
- the value of the
postBumpedrecord component
-