Class ArrayParameterType
java.lang.Object
xyz.janboerman.scalaloader.configurationserializable.runtime.ParameterType
xyz.janboerman.scalaloader.configurationserializable.runtime.ArrayParameterType
Represents array types.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static ArrayParameterType
from
(Set<? extends Annotation> annotations, ParameterType componentType, boolean varArgs) The same asfrom(ParameterType, boolean)
, but includes annotation information.static ArrayParameterType
from
(ParameterType componentType, boolean varArgs) Construct a new ArrayParameterTypeGet the component type of this array type.int
hashCode()
boolean
Whether this array parameter type uses the varargs notation (Foo...toString()
Methods inherited from class xyz.janboerman.scalaloader.configurationserializable.runtime.ParameterType
from, from, from, from, getAnnotation, getAnnotations, getRawType
-
Method Details
-
from
public static ArrayParameterType from(Set<? extends Annotation> annotations, ParameterType componentType, boolean varArgs) The same asfrom(ParameterType, boolean)
, but includes annotation information.- Parameters:
annotations
- the annotations present on this parametercomponentType
- the component type of the array typevarArgs
- whether this array type was declared as var-args- Returns:
- a new ArrayParameterType
-
from
Construct a new ArrayParameterType- Parameters:
componentType
- the component type of the array typevarArgs
- whether this array type was declared as var-args- Returns:
- a new ArrayParameterType
-
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
- Overrides:
equals
in classParameterType
-
hashCode
public int hashCode()- Overrides:
hashCode
in classParameterType
-
toString
- Overrides:
toString
in classParameterType
-