Modifier and Type | Field | Description |
---|---|---|
List<TypeVariableName> |
MethodSpec.typeVariables |
|
List<TypeVariableName> |
TypeSpec.typeVariables |
Modifier and Type | Method | Description |
---|---|---|
TypeVariableName |
TypeVariableName.annotated(List<AnnotationSpec> annotations) |
|
static TypeVariableName |
TypeVariableName.get(TypeVariable<?> type) |
Returns type variable equivalent to
type . |
static TypeVariableName |
TypeVariableName.get(String name) |
Returns type variable named
name without bounds. |
static TypeVariableName |
TypeVariableName.get(String name,
TypeName... bounds) |
Returns type variable named
name with bounds . |
static TypeVariableName |
TypeVariableName.get(String name,
Type... bounds) |
Returns type variable named
name with bounds . |
static TypeVariableName |
TypeVariableName.get(TypeParameterElement element) |
Returns type variable equivalent to
element . |
static TypeVariableName |
TypeVariableName.get(TypeVariable mirror) |
Returns type variable equivalent to
mirror . |
TypeVariableName |
TypeVariableName.withBounds(TypeName... bounds) |
|
TypeVariableName |
TypeVariableName.withBounds(Type... bounds) |
|
TypeVariableName |
TypeVariableName.withBounds(List<TypeName> bounds) |
Modifier and Type | Method | Description |
---|---|---|
MethodSpec.Builder |
MethodSpec.Builder.addTypeVariable(TypeVariableName typeVariable) |
|
TypeSpec.Builder |
TypeSpec.Builder.addTypeVariable(TypeVariableName typeVariable) |
Modifier and Type | Method | Description |
---|---|---|
MethodSpec.Builder |
MethodSpec.Builder.addTypeVariables(Iterable<TypeVariableName> typeVariables) |
|
TypeSpec.Builder |
TypeSpec.Builder.addTypeVariables(Iterable<TypeVariableName> typeVariables) |
Copyright © 2019 Square, Inc.. All rights reserved.