Record Class ReleaseStatusInspector.Observation

java.lang.Object
java.lang.Record
network.ike.plugin.ws.ReleaseStatusInspector.Observation
Record Components:
subprojectName - the subproject name from workspace.yaml
checkedOut - whether the subproject directory exists and contains a git repository
currentVersion - the <version> value read from the subproject's root POM, or "unknown" if it cannot be read
currentBranch - the current branch name, or "unknown"
releaseBranches - local branch names matching release/* (typically empty when no release is in flight)
localTags - local tags matching v*
remoteTags - tags present on origin matching v* (best-effort — empty when origin cannot be reached)
remoteReachable - whether the origin remote could be queried; false suppresses the local-only-tag warning to avoid false positives
Enclosing class:
ReleaseStatusInspector

public static record ReleaseStatusInspector.Observation(String subprojectName, boolean checkedOut, String currentVersion, String currentBranch, List<String> releaseBranches, Set<String> localTags, Set<String> remoteTags, boolean remoteReachable) extends Record
Raw git observations for a single subproject. Built by the mojo from real git subprocesses (or by a test fixture).
  • Constructor Details

    • Observation

      public Observation(String subprojectName, boolean checkedOut, String currentVersion, String currentBranch, List<String> releaseBranches, Set<String> localTags, Set<String> remoteTags, boolean remoteReachable)
      Creates an instance of a Observation record class.
      Parameters:
      subprojectName - the value for the subprojectName record component
      checkedOut - the value for the checkedOut record component
      currentVersion - the value for the currentVersion record component
      currentBranch - the value for the currentBranch record component
      releaseBranches - the value for the releaseBranches record component
      localTags - the value for the localTags record component
      remoteTags - the value for the remoteTags record component
      remoteReachable - the value for the remoteReachable 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.
    • subprojectName

      public String subprojectName()
      Returns the value of the subprojectName record component.
      Returns:
      the value of the subprojectName record component
    • checkedOut

      public boolean checkedOut()
      Returns the value of the checkedOut record component.
      Returns:
      the value of the checkedOut record component
    • currentVersion

      public String currentVersion()
      Returns the value of the currentVersion record component.
      Returns:
      the value of the currentVersion record component
    • currentBranch

      public String currentBranch()
      Returns the value of the currentBranch record component.
      Returns:
      the value of the currentBranch record component
    • releaseBranches

      public List<String> releaseBranches()
      Returns the value of the releaseBranches record component.
      Returns:
      the value of the releaseBranches record component
    • localTags

      public Set<String> localTags()
      Returns the value of the localTags record component.
      Returns:
      the value of the localTags record component
    • remoteTags

      public Set<String> remoteTags()
      Returns the value of the remoteTags record component.
      Returns:
      the value of the remoteTags record component
    • remoteReachable

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