All Known Implementing Classes:
ParameterSpecImpl

@ClassVersion(sourceVersion="$Id: ParameterSpec.java 1085 2024-01-05 16:23:28Z tquadrat $") @API(status=STABLE, since="0.0.5") public interface ParameterSpec
The specification for a generated parameter declaration.
Author:
Square,Inc.
Modified by:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: ParameterSpec.java 1085 2024-01-05 16:23:28Z tquadrat $
Since:
0.0.5
UML Diagram
UML Diagram for "org.tquadrat.foundation.javacomposer.ParameterSpec"

UML Diagram for "org.tquadrat.foundation.javacomposer.ParameterSpec"

UML Diagram for "org.tquadrat.foundation.javacomposer.ParameterSpec"
  • Method Details

    • equals

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

      int hashCode()
      Overrides:
      hashCode in class Object
    • hasModifier

      boolean hasModifier(Modifier modifier)
      Checks whether this parameter has the given modifier.
      Parameters:
      modifier - The modifier.
      Returns:
      true if the parameter has the given modifier, false if not.
    • name

      Returns the name of this parameter.
      Returns:
      The name.
    • toBuilder

      Returns a builder that is initialised with the components of this parameter.
      Returns:
      The builder.
    • toBuilder

      ParameterSpec.Builder toBuilder(TypeName type, CharSequence name, boolean keepJavadoc)
      Returns a builder for a parameter with the given type and name, and that is initialised with the components of this parameter.
      Parameters:
      type - The type for the new parameter.
      name - The name for the new parameter.
      keepJavadoc - true if an existing Javadoc comment should be preserved, false if it should be dropped.
      Returns:
      The builder.
    • toString

      Overrides:
      toString in class Object
    • type

      Returns the type of this parameter.
      Returns:
      The type