Record Class LocalInput
java.lang.Object
java.lang.Record
network.ike.plugin.release.local.LocalInput
- Record Components:
oldVersion- the current POM version (i.e.,X-SNAPSHOT) read frompom.xmlbefore any version mutationreleaseTimestamp- the commit-derived reproducible-build timestamp (ISO-8601 UTC) stamped intoproject.build.outputTimestampresuming-truewhenrunGoal()detected we are already on therelease/<version>branch from a failed earlier attempt — branch creation and version setting are skipped;restoreBackupshandles restore later
public record LocalInput(String oldVersion, String releaseTimestamp, boolean resuming)
extends Record
Inputs to the
LocalPhase — values the prep stage computes
before the local phase runs.
These will move to PrepOutcome when the release-prep phase
is extracted in Commit 5 (IKE-Network/ike-issues#489). Carrying them
as a small input record for now keeps the seam between the still-
inline prep block and the extracted local phase explicit.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalInput(String oldVersion, String releaseTimestamp, boolean resuming) Creates an instance of aLocalInputrecord 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.Returns the value of theoldVersionrecord component.Returns the value of thereleaseTimestamprecord component.booleanresuming()Returns the value of theresumingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalInput
Creates an instance of aLocalInputrecord class.- Parameters:
oldVersion- the value for theoldVersionrecord componentreleaseTimestamp- the value for thereleaseTimestamprecord componentresuming- the value for theresumingrecord 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. -
oldVersion
Returns the value of theoldVersionrecord component.- Returns:
- the value of the
oldVersionrecord component
-
releaseTimestamp
Returns the value of thereleaseTimestamprecord component.- Returns:
- the value of the
releaseTimestamprecord component
-
resuming
-