Class ParameterizedParameterType
java.lang.Object
xyz.janboerman.scalaloader.configurationserializable.runtime.ParameterType
xyz.janboerman.scalaloader.configurationserializable.runtime.ParameterizedParameterType
Represents parameterized types.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ParameterizedParameterTypefrom(Class<?> rawType, ParameterType... typeParameters) Construct a ParameterizedParameterType from a class and its type parameters.static ParameterizedParameterTypefrom(Set<? extends Annotation> annotations, Class<?> rawType, ParameterType... typeParameters) Same asfrom(Class, ParameterType...)but with annotation information included.getTypeParameter(int index) Get the i'th type parameter.List<? extends ParameterType> Get the type parameters of this parameterized type.inthashCode()toString()Methods inherited from class xyz.janboerman.scalaloader.configurationserializable.runtime.ParameterType
from, from, from, from, getAnnotation, getAnnotations, getRawType
-
Method Details
-
from
public static ParameterizedParameterType from(Set<? extends Annotation> annotations, Class<?> rawType, ParameterType... typeParameters) Same asfrom(Class, ParameterType...)but with annotation information included.- Parameters:
annotations- the annotationsrawType- the raw type of the classtypeParameters- the type parameters- Returns:
- a new ParameterizedParameterType
-
from
Construct a ParameterizedParameterType from a class and its type parameters.- Parameters:
rawType- the raw type of the classtypeParameters- the type parameters- Returns:
- a new ParameterizedParameterType
-
getTypeParameters
Get the type parameters of this parameterized type.- Returns:
- the type parameters
-
getTypeParameter
Get the i'th type parameter.- Parameters:
index- the 0-based index- Returns:
- the i'th type parameter
-
equals
- Overrides:
equalsin classParameterType
-
hashCode
public int hashCode()- Overrides:
hashCodein classParameterType
-
toString
- Overrides:
toStringin classParameterType
-