Record Class TagFormat
java.lang.Object
java.lang.Record
io.github.joke.conventionalversion.config.TagFormat
- Record Components:
includeComponent- release-pleaseinclude-component-in-tagseparator- release-pleasetag-separatorincludeV- release-pleaseinclude-v-in-tag
- All Implemented Interfaces:
Serializable
public record TagFormat(boolean includeComponent, String separator, boolean includeV)
extends Record
implements Serializable
How
release-please renders a release tag.
Mirrors its TagName: a component, a separator and a v prefix, with the component
dropped when it is excluded or empty — and the separator dropped with it, so an empty component
never leaves a leading -. There is deliberately no tag prefix option here, because
release-please has none; the v comes from include-v-in-tag.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagFormatdefaults()release-please's defaults: component included, separated by-, version prefixed byv.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeComponentrecord component.booleanincludeV()Returns the value of theincludeVrecord component.Returns the value of theseparatorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TagFormat
Creates an instance of aTagFormatrecord class.- Parameters:
includeComponent- the value for theincludeComponentrecord componentseparator- the value for theseparatorrecord componentincludeV- the value for theincludeVrecord component
-
-
Method Details
-
defaults
release-please's defaults: component included, separated by-, version prefixed byv. -
tag
-
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. -
includeComponent
public boolean includeComponent()Returns the value of theincludeComponentrecord component.- Returns:
- the value of the
includeComponentrecord component
-
separator
-
includeV
-