Record Class SubprojectSnapshot
java.lang.Object
java.lang.Record
network.ike.plugin.ws.SubprojectSnapshot
- Record Components:
name- subproject directory namesha- full commit SHA (or "unknown" if unavailable)shortSha- abbreviated commit SHAbranch- current branch nameversion- POM version (may be null)modified- true if working tree has uncommitted changes
public record SubprojectSnapshot(String name, String sha, String shortSha, String branch, String version, boolean modified)
extends Record
Immutable snapshot of a single workspace subproject at checkpoint time.
Decouples checkpoint YAML generation from git subprocess calls so the formatting logic is testable with plain records.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the value of thebranchrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmodified()Returns the value of themodifiedrecord component.name()Returns the value of thenamerecord component.sha()Returns the value of thesharecord component.shortSha()Returns the value of theshortSharecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
SubprojectSnapshot
public SubprojectSnapshot(String name, String sha, String shortSha, String branch, String version, boolean modified) Creates an instance of aSubprojectSnapshotrecord class.- Parameters:
name- the value for thenamerecord componentsha- the value for thesharecord componentshortSha- the value for theshortSharecord componentbranch- the value for thebranchrecord componentversion- the value for theversionrecord componentmodified- the value for themodifiedrecord 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. -
name
-
sha
-
shortSha
-
branch
-
version
-
modified
-