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 from pom.xml before any version mutation
releaseTimestamp - the commit-derived reproducible-build timestamp (ISO-8601 UTC) stamped into project.build.outputTimestamp
resuming - true when runGoal() detected we are already on the release/<version> branch from a failed earlier attempt — branch creation and version setting are skipped; restoreBackups handles 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 Details

    • LocalInput

      public LocalInput(String oldVersion, String releaseTimestamp, boolean resuming)
      Creates an instance of a LocalInput record class.
      Parameters:
      oldVersion - the value for the oldVersion record component
      releaseTimestamp - the value for the releaseTimestamp record component
      resuming - the value for the resuming 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.
    • oldVersion

      public String oldVersion()
      Returns the value of the oldVersion record component.
      Returns:
      the value of the oldVersion record component
    • releaseTimestamp

      public String releaseTimestamp()
      Returns the value of the releaseTimestamp record component.
      Returns:
      the value of the releaseTimestamp record component
    • resuming

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