Class GradleTask.Attribute

java.lang.Object
io.spring.initializr.generator.buildsystem.gradle.GradleTask.Attribute
Enclosing class:
GradleTask

public static final class GradleTask.Attribute extends Object
An attribute of a task.
  • Method Details

    • set

      public static GradleTask.Attribute set(String name, String value)
      Create an attribute that sets the specified value.
      Parameters:
      name - the name of the attribute
      value - the value to set
      Returns:
      an attribute
    • append

      public static GradleTask.Attribute append(String name, String value)
      Create an attribute that appends the specified value.
      Parameters:
      name - the name of the attribute
      value - the value to append
      Returns:
      an attribute
    • getName

      public String getName()
      Return the name of the attribute.
      Returns:
      the name
    • getValue

      public String getValue()
      Return the value of the attribute to set or to append.
      Returns:
      the value
    • getType

      public GradleTask.Attribute.Type getType()
      Return the GradleTask.Attribute.Type of the attribute.
      Returns:
      the type
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object