public final class TypeVariableName extends TypeName
Modifier and Type | Method | Description |
---|---|---|
TypeVariableName |
annotated(List<AnnotationSpec> annotations) |
|
static TypeVariableName |
get(TypeVariable<?> type) |
Returns type variable equivalent to
type . |
static TypeVariableName |
get(String name) |
Returns type variable named
name without bounds. |
static TypeVariableName |
get(String name,
TypeName... bounds) |
Returns type variable named
name with bounds . |
static TypeVariableName |
get(String name,
Type... 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 . |
TypeVariableName |
withBounds(TypeName... bounds) |
|
TypeVariableName |
withBounds(Type... bounds) |
|
TypeVariableName |
withBounds(List<TypeName> bounds) |
|
TypeName |
withoutAnnotations() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotated, box, concatAnnotations, equals, get, get, hashCode, isAnnotated, isBoxedPrimitive, isPrimitive, toString, unbox
public TypeVariableName annotated(List<AnnotationSpec> annotations)
public TypeName withoutAnnotations()
withoutAnnotations
in class TypeName
public TypeVariableName withBounds(Type... bounds)
public TypeVariableName withBounds(TypeName... bounds)
public TypeVariableName withBounds(List<TypeName> bounds)
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 © 2019 Square, Inc.. All rights reserved.