Record Class PyronautBuild

java.lang.Object
java.lang.Record
io.micronaut.starter.feature.build.pyronaut.PyronautBuild

public record PyronautBuild(String projectName, String version, List<String> repositories, Collection<Dependency> dependencies, boolean testResources, List<String> additionalModules, List<String> suppressions) extends Record
  • Field Details

  • Constructor Details

    • PyronautBuild

      public PyronautBuild(String projectName, String version, List<String> repositories, Collection<Dependency> dependencies, boolean testResources, List<String> additionalModules, List<String> suppressions)
      Creates an instance of a PyronautBuild record class.
      Parameters:
      projectName - the value for the projectName record component
      version - the value for the version record component
      repositories - the value for the repositories record component
      dependencies - the value for the dependencies record component
      testResources - the value for the testResources record component
      additionalModules - the value for the additionalModules record component
      suppressions - the value for the suppressions record component
  • Method Details

    • render

      public String render()
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • projectName

      public String projectName()
      Returns the value of the projectName record component.
      Returns:
      the value of the projectName record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • repositories

      public List<String> repositories()
      Returns the value of the repositories record component.
      Returns:
      the value of the repositories record component
    • dependencies

      public Collection<Dependency> dependencies()
      Returns the value of the dependencies record component.
      Returns:
      the value of the dependencies record component
    • testResources

      public boolean testResources()
      Returns the value of the testResources record component.
      Returns:
      the value of the testResources record component
    • additionalModules

      public List<String> additionalModules()
      Returns the value of the additionalModules record component.
      Returns:
      the value of the additionalModules record component
    • suppressions

      public List<String> suppressions()
      Returns the value of the suppressions record component.
      Returns:
      the value of the suppressions record component