public class TypeVariables
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.reflect.GenericDeclaration> |
typeVariableExtending(T declaration,
java.lang.String name,
java.lang.reflect.AnnotatedType... bounds)
Create an upper bounded wildcard type.
|
static <T extends java.lang.reflect.GenericDeclaration> |
typeVariableExtending(T declaration,
java.lang.String name,
java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
Create an upper bounded wildcard type.
|
static <T extends java.lang.reflect.GenericDeclaration> |
typeVariableExtending(T declaration,
java.lang.String name,
java.util.Collection<java.lang.annotation.Annotation> annotations,
java.lang.reflect.AnnotatedType... bounds)
Create an upper bounded wildcard type.
|
static <T extends java.lang.reflect.GenericDeclaration> |
typeVariableExtending(T declaration,
java.lang.String name,
java.util.Collection<java.lang.annotation.Annotation> annotations,
java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
Create an upper bounded wildcard type.
|
static <T extends java.lang.reflect.GenericDeclaration> |
unboundedTypeVariable(T declaration,
java.lang.String name)
Create an unbounded wildcard type.
|
public static <T extends java.lang.reflect.GenericDeclaration> java.lang.reflect.TypeVariable<T> unboundedTypeVariable(T declaration, java.lang.String name)
T
- the type of the generic declarationdeclaration
- the containing generic declarationname
- the name of the type variableWildcardType
representing an unbounded
wildcard.public static <T extends java.lang.reflect.GenericDeclaration> java.lang.reflect.TypeVariable<T> typeVariableExtending(T declaration, java.lang.String name, java.lang.reflect.AnnotatedType... bounds)
T
- the type of the generic declarationdeclaration
- the containing generic declarationname
- the name of the type variablebounds
- The types we wish form the upper bounds for a wildcard.WildcardType
representing a wildcard with
the given upper bound.public static <T extends java.lang.reflect.GenericDeclaration> java.lang.reflect.TypeVariable<T> typeVariableExtending(T declaration, java.lang.String name, java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
T
- the type of the generic declarationdeclaration
- the containing generic declarationname
- the name of the type variablebounds
- The types we wish form the upper bounds for a wildcard.WildcardType
representing a wildcard with
the given upper bound.public static <T extends java.lang.reflect.GenericDeclaration> java.lang.reflect.TypeVariable<T> typeVariableExtending(T declaration, java.lang.String name, java.util.Collection<java.lang.annotation.Annotation> annotations, java.lang.reflect.AnnotatedType... bounds)
T
- the type of the generic declarationdeclaration
- the containing generic declarationname
- the name of the type variableannotations
- the annotations to be declared on the new type variablebounds
- The types we wish form the upper bounds for a wildcard.WildcardType
representing a wildcard with
the given upper bound.public static <T extends java.lang.reflect.GenericDeclaration> java.lang.reflect.TypeVariable<T> typeVariableExtending(T declaration, java.lang.String name, java.util.Collection<java.lang.annotation.Annotation> annotations, java.util.Collection<? extends java.lang.reflect.AnnotatedType> bounds)
T
- the type of the generic declarationdeclaration
- the containing generic declarationname
- the name of the type variableannotations
- the annotations to be declared on the new type variablebounds
- The types we wish form the upper bounds for a wildcard.WildcardType
representing a wildcard with
the given upper bound.