Record Class ReleaseStatusInspector.Observation
java.lang.Object
java.lang.Record
network.ike.plugin.ws.ReleaseStatusInspector.Observation
- Record Components:
subprojectName- the subproject name fromworkspace.yamlcheckedOut- whether the subproject directory exists and contains a git repositorycurrentVersion- the<version>value read from the subproject's root POM, or"unknown"if it cannot be readcurrentBranch- the current branch name, or"unknown"releaseBranches- local branch names matchingrelease/*(typically empty when no release is in flight)localTags- local tags matchingv*remoteTags- tags present onoriginmatchingv*(best-effort — empty whenorigincannot be reached)remoteReachable- whether theoriginremote could be queried;falsesuppresses 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecheckedOutrecord component.Returns the value of thecurrentBranchrecord component.Returns the value of thecurrentVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalTagsrecord component.Returns the value of thereleaseBranchesrecord component.booleanReturns the value of theremoteReachablerecord component.Returns the value of theremoteTagsrecord component.Returns the value of thesubprojectNamerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aObservationrecord class.- Parameters:
subprojectName- the value for thesubprojectNamerecord componentcheckedOut- the value for thecheckedOutrecord componentcurrentVersion- the value for thecurrentVersionrecord componentcurrentBranch- the value for thecurrentBranchrecord componentreleaseBranches- the value for thereleaseBranchesrecord componentlocalTags- the value for thelocalTagsrecord componentremoteTags- the value for theremoteTagsrecord componentremoteReachable- the value for theremoteReachablerecord 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. -
subprojectName
Returns the value of thesubprojectNamerecord component.- Returns:
- the value of the
subprojectNamerecord component
-
checkedOut
public boolean checkedOut()Returns the value of thecheckedOutrecord component.- Returns:
- the value of the
checkedOutrecord component
-
currentVersion
Returns the value of thecurrentVersionrecord component.- Returns:
- the value of the
currentVersionrecord component
-
currentBranch
Returns the value of thecurrentBranchrecord component.- Returns:
- the value of the
currentBranchrecord component
-
releaseBranches
Returns the value of thereleaseBranchesrecord component.- Returns:
- the value of the
releaseBranchesrecord component
-
localTags
-
remoteTags
Returns the value of theremoteTagsrecord component.- Returns:
- the value of the
remoteTagsrecord component
-
remoteReachable
public boolean remoteReachable()Returns the value of theremoteReachablerecord component.- Returns:
- the value of the
remoteReachablerecord component
-