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 TypeMethodDescriptionbooleanstatic ArrayParameterTypefrom(Set<? extends Annotation> annotations, ParameterType componentType, boolean varArgs) The same asfrom(ParameterType, boolean), but includes annotation information.static ArrayParameterTypefrom(ParameterType componentType, boolean varArgs) Construct a new ArrayParameterTypeGet the component type of this array type.inthashCode()booleanWhether 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:
equalsin classParameterType
-
hashCode
public int hashCode()- Overrides:
hashCodein classParameterType
-
toString
- Overrides:
toStringin classParameterType
-