Record Class GitFlowConfig
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.gitflow.GitFlowConfig
- Record Components:
production- long-lived branch holding released code (gitflow.branch.master), e.g.maindevelopment- long-lived integration branch (gitflow.branch.develop), e.g.developfeaturePrefix-gitflow.prefix.feature, e.g.feature/releasePrefix-gitflow.prefix.releasehotfixPrefix-gitflow.prefix.hotfixsupportPrefix-gitflow.prefix.supportversionTagPrefix-gitflow.prefix.versiontag, e.g.v; may be empty
public record GitFlowConfig(String production, String development, String featurePrefix, String releasePrefix, String hotfixPrefix, String supportPrefix, String versionTagPrefix)
extends Record
Branch names and prefixes of a repository. Stored in the same
gitflow.* keys as the git flow
command line tool, so repositories initialised by either tool work with both.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe branch a new branch of this kind starts from.static GitFlowConfigThe conventional defaults for a repository whose production branch isproduction.Returns the value of thedevelopmentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeaturePrefixrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehotfixPrefixrecord component.The prefix of the branches of this kind, e.g.Returns the value of theproductionrecord component.Returns the value of thereleasePrefixrecord component.Returns the value of thesupportPrefixrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theversionTagPrefixrecord component.
-
Field Details
-
DEFAULT_DEVELOPMENT
- See Also:
-
DEFAULT_VERSION_TAG_PREFIX
- See Also:
-
-
Constructor Details
-
GitFlowConfig
public GitFlowConfig(String production, String development, String featurePrefix, String releasePrefix, String hotfixPrefix, String supportPrefix, String versionTagPrefix) Creates an instance of aGitFlowConfigrecord class.- Parameters:
production- the value for theproductionrecord componentdevelopment- the value for thedevelopmentrecord componentfeaturePrefix- the value for thefeaturePrefixrecord componentreleasePrefix- the value for thereleasePrefixrecord componenthotfixPrefix- the value for thehotfixPrefixrecord componentsupportPrefix- the value for thesupportPrefixrecord componentversionTagPrefix- the value for theversionTagPrefixrecord component
-
-
Method Details
-
defaults
The conventional defaults for a repository whose production branch isproduction. -
prefix
The prefix of the branches of this kind, e.g.feature/. -
base
The branch a new branch of this kind starts from. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
production
Returns the value of theproductionrecord component.- Returns:
- the value of the
productionrecord component
-
development
Returns the value of thedevelopmentrecord component.- Returns:
- the value of the
developmentrecord component
-
featurePrefix
Returns the value of thefeaturePrefixrecord component.- Returns:
- the value of the
featurePrefixrecord component
-
releasePrefix
Returns the value of thereleasePrefixrecord component.- Returns:
- the value of the
releasePrefixrecord component
-
hotfixPrefix
Returns the value of thehotfixPrefixrecord component.- Returns:
- the value of the
hotfixPrefixrecord component
-
supportPrefix
Returns the value of thesupportPrefixrecord component.- Returns:
- the value of the
supportPrefixrecord component
-
versionTagPrefix
Returns the value of theversionTagPrefixrecord component.- Returns:
- the value of the
versionTagPrefixrecord component
-