Package org.int4.dirk.util
Class TypeVariables
- java.lang.Object
-
- org.int4.dirk.util.TypeVariables
-
public class TypeVariables extends java.lang.ObjectSupport functions for type variables.
-
-
Constructor Summary
Constructors Constructor Description TypeVariables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.lang.reflect.TypeVariable<java.lang.Class<T>>get(java.lang.Class<?> cls, int index)Extracts the type variable at the given index from the givenClass.
-
-
-
Method Detail
-
get
public static <T> java.lang.reflect.TypeVariable<java.lang.Class<T>> get(java.lang.Class<?> cls, int index)Extracts the type variable at the given index from the givenClass.- Type Parameters:
T- the type of the class- Parameters:
cls- aClass, cannot benullindex- an index, ranging from 0 to the amount of type variables - 1, cannot be negative- Returns:
- a
TypeVariable, nevernull - Throws:
java.lang.NullPointerException- when the given class wasnulljava.lang.IndexOutOfBoundsException- when an index was given outside the valid range
-
-