Record Class Cohort
java.lang.Object
java.lang.Record
network.ike.workspace.Cohort
- Record Components:
members- the release members in topological (upstream-first) orderdecentralized-truewhen the members are sibling repositories with no common root (the foundation cascade);falsefor a single repo or a co-located workspace
A dependency-ordered set of release members — the scope an artifact /
release-style workspace verb (release, align) acts on
(IKE-Network/ike-issues#610, under the console/engine boundary, #601).
Where a WorkingSet is co-located checkouts in declaration order
(for working-tree verbs), a cohort is topologically ordered
— a member never precedes an upstream it depends on — and excludes
the workspace aggregator root, which is not a released artifact.
A cohort may also be decentralized: the foundation release cascade
spans sibling repositories that share no common root, assembled from each
project's release-cascade.yaml (modelled by
ReleaseCascade).
Resolved from context by CohortResolver: a single repository is
a cohort of one; a workspace.yaml is its subprojects in topological
order.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCohort(List<Cohort.Member> members, boolean decentralized) Creates an instance of aCohortrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedecentralizedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Whether this cohort has no members.members()Returns the value of themembersrecord component.intsize()The number of release members in this cohort.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Cohort
Creates an instance of aCohortrecord class.- Parameters:
members- the value for themembersrecord componentdecentralized- the value for thedecentralizedrecord component
-
-
Method Details
-
size
public int size()The number of release members in this cohort.- Returns:
- the member count
-
isEmpty
public boolean isEmpty()Whether this cohort has no members.- Returns:
trueif empty
-
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. -
members
-
decentralized
public boolean decentralized()Returns the value of thedecentralizedrecord component.- Returns:
- the value of the
decentralizedrecord component
-