Record Class GenericOptions
java.lang.Object
java.lang.Record
io.micronaut.projectgen.core.options.GenericOptions
- 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 aGenericOptions
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
artifact()
Returns the value of theartifact
record component.Returns the value of thebuildTools
record component.@Nullable ConfigurationFormat
Returns the value of theconfigurationFormat
record component.final boolean
Indicates whether some other object is "equal to" this one.features()
Returns the value of thefeatures
record component.@Nullable GradleDsl
Returns the value of thegradleDsl
record component.@Nullable String
group()
Returns the value of thegroup
record component.final int
hashCode()
Returns a hash code value for this object.@Nullable JdkVersion
java()
Returns the value of thejava
record component.@Nullable Language
language()
Returns the value of thelanguage
record component.name()
Returns the value of thename
record component.@Nullable OperatingSystem
Returns the value of theoperatingSystem
record component.@Nullable String
Returns the value of thepackageName
record component.@Nullable Packaging
Returns the value of thepackaging
record component.@Nullable String
template()
Returns the value of thetemplate
record component.@Nullable TestFramework
Returns the value of thetestFramework
record component.final String
toString()
Returns a string representation of this record class.@Nullable String
version()
Returns the value of theversion
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 aGenericOptions
record class.- Parameters:
name
- the value for thename
record componentversion
- the value for theversion
record componentoperatingSystem
- the value for theoperatingSystem
record componenttemplate
- the value for thetemplate
record componentlanguage
- the value for thelanguage
record componentbuildTools
- the value for thebuildTools
record componentconfigurationFormat
- the value for theconfigurationFormat
record componentgradleDsl
- the value for thegradleDsl
record componentgroup
- the value for thegroup
record componentartifact
- the value for theartifact
record componentjava
- the value for thejava
record componentpackageName
- the value for thepackageName
record componentpackaging
- the value for thepackaging
record componentfeatures
- the value for thefeatures
record componenttestFramework
- the value for thetestFramework
record component
-
-
Method Details
-
withoutFeatures
- Specified by:
withoutFeatures
in interfaceOptions
-
features
Returns the value of thefeatures
record component. -
buildTools
Returns the value of thebuildTools
record component.- Specified by:
buildTools
in interfaceOptions
- Returns:
- the value of the
buildTools
record component
-
name
Returns the value of thename
record 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 theversion
record component. -
operatingSystem
Returns the value of theoperatingSystem
record component.- Specified by:
operatingSystem
in interfaceOptions
- Returns:
- the value of the
operatingSystem
record component
-
template
Returns the value of thetemplate
record component. -
language
Returns the value of thelanguage
record component. -
configurationFormat
Returns the value of theconfigurationFormat
record component.- Specified by:
configurationFormat
in interfaceOptions
- Returns:
- the value of the
configurationFormat
record component
-
gradleDsl
Returns the value of thegradleDsl
record component. -
group
Returns the value of thegroup
record component. -
artifact
Returns the value of theartifact
record component. -
java
Returns the value of thejava
record component. -
packageName
Returns the value of thepackageName
record component.- Specified by:
packageName
in interfaceOptions
- Returns:
- the value of the
packageName
record component
-
packaging
Returns the value of thepackaging
record component. -
testFramework
Returns the value of thetestFramework
record component.- Specified by:
testFramework
in interfaceOptions
- Returns:
- the value of the
testFramework
record component
-