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 the release/<version> branch (false if resuming and the commit was already present)
merged - whether release/<version> was merged back to main
postBumped - whether main received 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

    Constructors
    Constructor
    Description
    LocalOutcome(String tag, boolean releaseCommitted, boolean merged, boolean postBumped)
    Creates an instance of a LocalOutcome record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the merged record component.
    boolean
    Returns the value of the postBumped record component.
    boolean
    Returns the value of the releaseCommitted record component.
    tag()
    Returns the value of the tag record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LocalOutcome

      public LocalOutcome(String tag, boolean releaseCommitted, boolean merged, boolean postBumped)
      Creates an instance of a LocalOutcome record class.
      Parameters:
      tag - the value for the tag record component
      releaseCommitted - the value for the releaseCommitted record component
      merged - the value for the merged record component
      postBumped - the value for the postBumped record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • tag

      public String tag()
      Returns the value of the tag record component.
      Returns:
      the value of the tag record component
    • releaseCommitted

      public boolean releaseCommitted()
      Returns the value of the releaseCommitted record component.
      Returns:
      the value of the releaseCommitted record component
    • merged

      public boolean merged()
      Returns the value of the merged record component.
      Returns:
      the value of the merged record component
    • postBumped

      public boolean postBumped()
      Returns the value of the postBumped record component.
      Returns:
      the value of the postBumped record component