java.lang.Object
xyz.janboerman.scalaloader.configurationserializable.runtime.ParameterType
xyz.janboerman.scalaloader.configurationserializable.runtime.ArrayParameterType

public class ArrayParameterType extends ParameterType
Represents array types.
See Also:
  • Method Details

    • from

      public static ArrayParameterType from(Set<? extends Annotation> annotations, ParameterType componentType, boolean varArgs)
      The same as from(ParameterType, boolean), but includes annotation information.
      Parameters:
      annotations - the annotations present on this parameter
      componentType - the component type of the array type
      varArgs - whether this array type was declared as var-args
      Returns:
      a new ArrayParameterType
    • from

      public static ArrayParameterType from(ParameterType componentType, boolean varArgs)
      Construct a new ArrayParameterType
      Parameters:
      componentType - the component type of the array type
      varArgs - whether this array type was declared as var-args
      Returns:
      a new ArrayParameterType
    • getComponentType

      public ParameterType getComponentType()
      Get the component type of this array type.
      Returns:
      the component type
    • isVarArgs

      public boolean isVarArgs()
      Whether this array parameter type uses the varargs notation (Foo... foos)
      Returns:
      true if this parameter uses the varargs notation, otherwise false
    • equals

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

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

      public String toString()
      Overrides:
      toString in class ParameterType