Class ParameterizedParameterType

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

public class ParameterizedParameterType extends ParameterType
Represents parameterized types.
See Also:
  • Method Details

    • from

      public static ParameterizedParameterType from(Set<? extends Annotation> annotations, Class<?> rawType, ParameterType... typeParameters)
      Same as from(Class, ParameterType...) but with annotation information included.
      Parameters:
      annotations - the annotations
      rawType - the raw type of the class
      typeParameters - the type parameters
      Returns:
      a new ParameterizedParameterType
    • from

      public static ParameterizedParameterType from(Class<?> rawType, ParameterType... typeParameters)
      Construct a ParameterizedParameterType from a class and its type parameters.
      Parameters:
      rawType - the raw type of the class
      typeParameters - the type parameters
      Returns:
      a new ParameterizedParameterType
    • getTypeParameters

      public List<? extends ParameterType> getTypeParameters()
      Get the type parameters of this parameterized type.
      Returns:
      the type parameters
    • getTypeParameter

      public ParameterType getTypeParameter(int index)
      Get the i'th type parameter.
      Parameters:
      index - the 0-based index
      Returns:
      the i'th type parameter
    • 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