public final class TypeVariableName extends TypeName
| Modifier and Type | Method and Description |
|---|---|
TypeVariableName |
annotated(List<AnnotationSpec> annotations) |
static TypeVariableName |
get(String name)
Returns type variable named
name without bounds. |
static TypeVariableName |
get(String name,
Type... bounds)
Returns type variable named
name with bounds. |
static TypeVariableName |
get(String name,
TypeName... bounds)
Returns type variable named
name with bounds. |
static TypeVariableName |
get(TypeParameterElement element)
Returns type variable equivalent to
element. |
static TypeVariableName |
get(TypeVariable mirror)
Returns type variable equivalent to
mirror. |
static TypeVariableName |
get(TypeVariable<?> type)
Returns type variable equivalent to
type. |
public TypeVariableName annotated(List<AnnotationSpec> annotations)
public static TypeVariableName get(String name)
name without bounds.public static TypeVariableName get(String name, TypeName... bounds)
name with bounds.public static TypeVariableName get(String name, Type... bounds)
name with bounds.public static TypeVariableName get(TypeVariable mirror)
mirror.public static TypeVariableName get(TypeParameterElement element)
element.public static TypeVariableName get(TypeVariable<?> type)
type.Copyright © 2016 Square, Inc.. All Rights Reserved.