Record Class CascadeBump

java.lang.Object
java.lang.Record
network.ike.plugin.CascadeBump
Record Components:
groupId - the upgraded upstream's groupId (e.g. network.ike.tooling)
artifactId - the upgraded upstream's artifactId (e.g. ike-tooling)
current - the version the pin held before alignment (e.g. 221)
latest - the released version the pin was raised to (e.g. 222)

public record CascadeBump(String groupId, String artifactId, String current, String latest) extends Record
A single upstream-version upgrade applied by the release-prep "align upstream cascade versions" step (ReleasePrep B8, IKE-Network/ike-issues#419): a <G>__GA__<A>__VERSION pin (or a <parent> version) rewritten from current to latest so a single-repo release never ships on a stale foundation.

Captured as structured data — rather than a pre-formatted log string — so the same upgrade facts can be rendered into the align commit message, the GitHub Release body, and the run report without re-parsing (IKE-Network/ike-issues#706). A cascade-only release (a foundation rebuild that consumed a newer upstream but had no changes of its own) carries these as its only "what changed," so they must survive from prep all the way to the release notes.

  • Constructor Details

    • CascadeBump

      public CascadeBump(String groupId, String artifactId, String current, String latest)
      Creates an instance of a CascadeBump record class.
      Parameters:
      groupId - the value for the groupId record component
      artifactId - the value for the artifactId record component
      current - the value for the current record component
      latest - the value for the latest record component
  • Method Details

    • ga

      public String ga()
      The groupId:artifactId coordinate label.
      Returns:
      the GA coordinate (e.g. network.ike.tooling:ike-tooling)
    • compact

      public String compact()
      A compact one-line upgrade rendering for commit messages — the short artifact name and the version transition, e.g. ike-tooling 221→222.
      Returns:
      the compact <artifactId> <current>→<latest> form
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • groupId

      public String groupId()
      Returns the value of the groupId record component.
      Returns:
      the value of the groupId record component
    • artifactId

      public String artifactId()
      Returns the value of the artifactId record component.
      Returns:
      the value of the artifactId record component
    • current

      public String current()
      Returns the value of the current record component.
      Returns:
      the value of the current record component
    • latest

      public String latest()
      Returns the value of the latest record component.
      Returns:
      the value of the latest record component