public final class TypeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static GenericClass |
BOOLEAN_CLASS |
static GenericClass |
BYTE_CLASS |
static GenericClass |
CHARACTER_CLASS |
static GenericClass |
DOUBLE_CLASS |
static GenericClass |
FLOAT_CLASS |
static GenericClass |
INTEGER_CLASS |
static GenericClass |
LONG_CLASS |
static GenericClass |
SHORT_CLASS |
static GenericClass |
STRING_CLASS |
| Modifier and Type | Method and Description |
|---|---|
static GenericClass |
box(ValueType type) |
static boolean |
isPrimitiveSubType(Primitive subtype,
Primitive supertype) |
static ValueType |
tryBox(ValueType type) |
static ValueType |
tryUnbox(GenericType type) |
static Primitive |
unbox(GenericType type) |
static MethodWithFreshTypeVars |
withFreshTypeVars(GenericMethod method,
TypeInference inference) |
public static final GenericClass BOOLEAN_CLASS
public static final GenericClass CHARACTER_CLASS
public static final GenericClass BYTE_CLASS
public static final GenericClass SHORT_CLASS
public static final GenericClass INTEGER_CLASS
public static final GenericClass LONG_CLASS
public static final GenericClass FLOAT_CLASS
public static final GenericClass DOUBLE_CLASS
public static final GenericClass STRING_CLASS
public static ValueType tryUnbox(GenericType type)
public static Primitive unbox(GenericType type)
public static GenericClass box(ValueType type)
public static MethodWithFreshTypeVars withFreshTypeVars(GenericMethod method, TypeInference inference)
Copyright © 2019. All rights reserved.