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 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 a GenericOptions record class.
      Parameters:
      name - the value for the name record component
      version - the value for the version record component
      operatingSystem - the value for the operatingSystem record component
      template - the value for the template record component
      language - the value for the language record component
      buildTools - the value for the buildTools record component
      configurationFormat - the value for the configurationFormat record component
      gradleDsl - the value for the gradleDsl record component
      group - the value for the group record component
      artifact - the value for the artifact record component
      java - the value for the java record component
      packageName - the value for the packageName record component
      packaging - the value for the packaging record component
      features - the value for the features record component
      testFramework - the value for the testFramework record component
  • Method Details

    • withoutFeatures

      public Options withoutFeatures()
      Specified by:
      withoutFeatures in interface Options
    • features

      public List<String> features()
      Returns the value of the features record component.
      Specified by:
      features in interface Options
      Returns:
      the value of the features record component
    • buildTools

      public List<BuildTool> buildTools()
      Returns the value of the buildTools record component.
      Specified by:
      buildTools in interface Options
      Returns:
      the value of the buildTools record component
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface Options
      Returns:
      the value of the name record component
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • version

      @Nullable public @Nullable String version()
      Returns the value of the version record component.
      Specified by:
      version in interface Options
      Returns:
      the value of the version record component
    • operatingSystem

      @Nullable public @Nullable OperatingSystem operatingSystem()
      Returns the value of the operatingSystem record component.
      Specified by:
      operatingSystem in interface Options
      Returns:
      the value of the operatingSystem record component
    • template

      @Nullable public @Nullable String template()
      Returns the value of the template record component.
      Specified by:
      template in interface Options
      Returns:
      the value of the template record component
    • language

      @Nullable public @Nullable Language language()
      Returns the value of the language record component.
      Specified by:
      language in interface Options
      Returns:
      the value of the language record component
    • configurationFormat

      @Nullable public @Nullable ConfigurationFormat configurationFormat()
      Returns the value of the configurationFormat record component.
      Specified by:
      configurationFormat in interface Options
      Returns:
      the value of the configurationFormat record component
    • gradleDsl

      @Nullable public @Nullable GradleDsl gradleDsl()
      Returns the value of the gradleDsl record component.
      Specified by:
      gradleDsl in interface Options
      Returns:
      the value of the gradleDsl record component
    • group

      @Nullable public @Nullable String group()
      Returns the value of the group record component.
      Specified by:
      group in interface Options
      Returns:
      the value of the group record component
    • artifact

      @Nullable public @Nullable String artifact()
      Returns the value of the artifact record component.
      Specified by:
      artifact in interface Options
      Returns:
      the value of the artifact record component
    • java

      @Nullable public @Nullable JdkVersion java()
      Returns the value of the java record component.
      Specified by:
      java in interface Options
      Returns:
      the value of the java record component
    • packageName

      @Nullable public @Nullable String packageName()
      Returns the value of the packageName record component.
      Specified by:
      packageName in interface Options
      Returns:
      the value of the packageName record component
    • packaging

      @Nullable public @Nullable Packaging packaging()
      Returns the value of the packaging record component.
      Specified by:
      packaging in interface Options
      Returns:
      the value of the packaging record component
    • testFramework

      @Nullable public @Nullable TestFramework testFramework()
      Returns the value of the testFramework record component.
      Specified by:
      testFramework in interface Options
      Returns:
      the value of the testFramework record component