Record Class GenericOptions
java.lang.Object
java.lang.Record
io.micronaut.projectgen.core.options.GenericOptions
- Record Components:
name- Project nameversion- Project VersionoperatingSystem- Operating Systemtemplate- templatelanguage- languagebuildTools- build toolsconfigurationFormat- configuration formatgradleDsl- Gradle DSLgroup- groupartifact- artifactjava- Java versionpackageName- package namepackaging- packagingfeatures- FeaturestestFramework- Test framework
- All Implemented Interfaces:
Options
@Builder
public record GenericOptions(@NonNull String name, @Nullable String version, @Nullable OperatingSystem operatingSystem, @Nullable String template, @Nullable Language language, @Nullable List<BuildTool> buildTools, @Nullable ConfigurationFormat configurationFormat, @Nullable GradleDsl gradleDsl, @Nullable String group, @Nullable String artifact, @Nullable JdkVersion java, @Nullable String packageName, @Nullable Packaging packaging, @Nullable List<String> features, @Nullable TestFramework testFramework)
extends Record
implements Options
Options Implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericOptions(@NonNull String name, @Nullable String version, @Nullable OperatingSystem operatingSystem, @Nullable String template, @Nullable Language language, @Nullable List<BuildTool> buildTools, @Nullable ConfigurationFormat configurationFormat, @Nullable GradleDsl gradleDsl, @Nullable String group, @Nullable String artifact, @Nullable JdkVersion java, @Nullable String packageName, @Nullable Packaging packaging, @Nullable List<String> features, @Nullable TestFramework testFramework) Creates an instance of aGenericOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionartifact()Returns the value of theartifactrecord component.Returns the value of thebuildToolsrecord component.@Nullable ConfigurationFormatReturns the value of theconfigurationFormatrecord component.final booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.@Nullable GradleDslReturns the value of thegradleDslrecord component.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.@Nullable JdkVersionjava()Returns the value of thejavarecord component.@Nullable Languagelanguage()Returns the value of thelanguagerecord component.name()Returns the value of thenamerecord component.@Nullable OperatingSystemReturns the value of theoperatingSystemrecord component.@Nullable StringReturns the value of thepackageNamerecord component.@Nullable PackagingReturns the value of thepackagingrecord component.@Nullable Stringtemplate()Returns the value of thetemplaterecord component.@Nullable TestFrameworkReturns the value of thetestFrameworkrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringversion()Returns the value of theversionrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.projectgen.core.options.Options
getBuildTool
-
Constructor Details
-
GenericOptions
public GenericOptions(@NonNull @NonNull String name, @Nullable @Nullable String version, @Nullable @Nullable OperatingSystem operatingSystem, @Nullable @Nullable String template, @Nullable @Nullable Language language, @Nullable @Nullable List<BuildTool> buildTools, @Nullable @Nullable ConfigurationFormat configurationFormat, @Nullable @Nullable GradleDsl gradleDsl, @Nullable @Nullable String group, @Nullable @Nullable String artifact, @Nullable @Nullable JdkVersion java, @Nullable @Nullable String packageName, @Nullable @Nullable Packaging packaging, @Nullable @Nullable List<String> features, @Nullable @Nullable TestFramework testFramework) Creates an instance of aGenericOptionsrecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentoperatingSystem- the value for theoperatingSystemrecord componenttemplate- the value for thetemplaterecord componentlanguage- the value for thelanguagerecord componentbuildTools- the value for thebuildToolsrecord componentconfigurationFormat- the value for theconfigurationFormatrecord componentgradleDsl- the value for thegradleDslrecord componentgroup- the value for thegrouprecord componentartifact- the value for theartifactrecord componentjava- the value for thejavarecord componentpackageName- the value for thepackageNamerecord componentpackaging- the value for thepackagingrecord componentfeatures- the value for thefeaturesrecord componenttestFramework- the value for thetestFrameworkrecord component
-
-
Method Details
-
withoutFeatures
- Specified by:
withoutFeaturesin interfaceOptions
-
artifact
Returns the value of theartifactrecord component. -
group
Returns the value of thegrouprecord component. -
features
Returns the value of thefeaturesrecord component. -
buildTools
Returns the value of thebuildToolsrecord component.- Specified by:
buildToolsin interfaceOptions- Returns:
- the value of the
buildToolsrecord component
-
name
Returns the value of thenamerecord component. -
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). -
version
Returns the value of theversionrecord component. -
operatingSystem
Returns the value of theoperatingSystemrecord component.- Specified by:
operatingSystemin interfaceOptions- Returns:
- the value of the
operatingSystemrecord component
-
template
Returns the value of thetemplaterecord component. -
language
Returns the value of thelanguagerecord component. -
configurationFormat
Returns the value of theconfigurationFormatrecord component.- Specified by:
configurationFormatin interfaceOptions- Returns:
- the value of the
configurationFormatrecord component
-
gradleDsl
Returns the value of thegradleDslrecord component. -
java
Returns the value of thejavarecord component. -
packageName
Returns the value of thepackageNamerecord component.- Specified by:
packageNamein interfaceOptions- Returns:
- the value of the
packageNamerecord component
-
packaging
Returns the value of thepackagingrecord component. -
testFramework
Returns the value of thetestFrameworkrecord component.- Specified by:
testFrameworkin interfaceOptions- Returns:
- the value of the
testFrameworkrecord component
-