Record Class WorkingSet
- Record Components:
root- the primary directory — the workspace root, or the single repositorymanifest- theworkspace.yamlpath, ornullfor a single-repository working setbaseName- the working set's identity for derived names — the base for sibling directories (<baseName>-<feature>): the manifestworkspace-root:artifactIdwhen present, otherwise the root directory namemembers- every git working tree in the set, in a deterministic order: the declared subprojects followed by the workspace root (a single-repository working set has the one repo as its sole member). The workspace root is the member whoseWorkingSet.Member.directory()equalsroot()and whoseWorkingSet.Member.kind()isWorkingSet.Member.Kind.AGGREGATOR.
A working set is resolved from context by WorkingSetResolver:
a single repository is a working set of one; a workspace.yaml
declares a larger one. Working-tree verbs — commit, push, sync, branch,
fork, switch — act on each WorkingSet.Member; the manifest(), when
present, carries the workspace metadata.
The workspace root (aggregator) is a first-class WorkingSet.Member, not an
orchestrator standing outside the set: it is branched, version-qualified,
committed, and tagged alongside the subprojects. Each member therefore
carries a WorkingSet.Member.Kind so reports and lifecycle goals can include the
aggregator and special-case it where its role differs (#764).
This is the working-set half of the scope-resolution layer; the dependency-ordered artifact cohort that release-style verbs need is modelled separately (ike-issues#610).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWorkingSet(Path root, Path manifest, String baseName, List<WorkingSet.Member> members) Creates an instance of aWorkingSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseName()Returns the value of thebaseNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanWhether this is a single-repository working set — a working set of one.booleanWhether this working set is backed by aworkspace.yaml.manifest()Returns the value of themanifestrecord component.members()Returns the value of themembersrecord component.root()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isWorkspace
public boolean isWorkspace()Whether this working set is backed by aworkspace.yaml.- Returns:
truefor a workspace,falsefor a single repo
-
isSingleRepo
public boolean isSingleRepo()Whether this is a single-repository working set — a working set of one.- Returns:
truefor a single repository
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
root
-
manifest
-
baseName
-
members
-