Record Class ReleaseConfiguration
java.lang.Object
java.lang.Record
io.github.joke.conventionalversion.config.ReleaseConfiguration
public record ReleaseConfiguration(List<ReleasePackage> packages, List<LinkedGroup> linkedGroups)
extends Record
The release layout of a repository: what is releasable, and what is held in lockstep.
A path claimed by no package is not meant to be released — an internal module, a shared component, an aggregator. That is a statement the configuration makes, not an omission to repair.
-
Constructor Summary
ConstructorsConstructorDescriptionReleaseConfiguration(List<ReleasePackage> packages, List<LinkedGroup> linkedGroups) Creates an instance of aReleaseConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionThe package claiming a repository-relative path, deepest declaration first.final booleanIndicates whether some other object is "equal to" this one.The group holding a component, when one does.final inthashCode()Returns a hash code value for this object.Returns the value of thelinkedGroupsrecord component.packages()Returns the value of thepackagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReleaseConfiguration
Creates an instance of aReleaseConfigurationrecord class.- Parameters:
packages- the value for thepackagesrecord componentlinkedGroups- the value for thelinkedGroupsrecord component
-
-
Method Details
-
claiming
The package claiming a repository-relative path, deepest declaration first. -
groupOf
The group holding a component, when one does. -
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). -
packages
Returns the value of thepackagesrecord component.- Returns:
- the value of the
packagesrecord component
-
linkedGroups
Returns the value of thelinkedGroupsrecord component.- Returns:
- the value of the
linkedGroupsrecord component
-