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 Summary
ConstructorsConstructorDescriptionCascadeBump(String groupId, String artifactId, String current, String latest) Creates an instance of aCascadeBumprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.compact()A compact one-line upgrade rendering for commit messages — the short artifact name and the version transition, e.g.current()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.ga()ThegroupId:artifactIdcoordinate label.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.latest()Returns the value of thelatestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CascadeBump
Creates an instance of aCascadeBumprecord class.- Parameters:
groupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentcurrent- the value for thecurrentrecord componentlatest- the value for thelatestrecord component
-
-
Method Details
-
ga
ThegroupId:artifactIdcoordinate label.- Returns:
- the GA coordinate (e.g.
network.ike.tooling:ike-tooling)
-
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
-
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). -
groupId
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
current
-
latest
-