public class MoreTypes extends java.lang.Object
Types API.| Modifier and Type | Class and Description |
|---|---|
static class |
MoreTypes.GenericArrayTypeImpl |
static class |
MoreTypes.ParameterizedTypeImpl |
static class |
MoreTypes.WildcardTypeImpl
The WildcardType interface supports multiple upper bounds and multiple
lower bounds.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.reflect.Type[] |
EMPTY_TYPE_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.reflect.Type |
canonicalize(java.lang.reflect.Type type)
Returns a type that is functionally equal but not necessarily equal
according to
Object.equals(). |
static boolean |
equals(java.lang.reflect.Type a,
java.lang.reflect.Type b)
Returns true if
a and b are equal. |
static java.lang.Class<?> |
getRawType(java.lang.reflect.Type type) |
static java.lang.String |
typeToString(java.lang.reflect.Type type) |
public static final java.lang.reflect.Type[] EMPTY_TYPE_ARRAY
public static java.lang.reflect.Type canonicalize(java.lang.reflect.Type type)
Object.equals(). The returned
type is Serializable.public static java.lang.Class<?> getRawType(java.lang.reflect.Type type)
public static boolean equals(java.lang.reflect.Type a, java.lang.reflect.Type b)
a and b are equal.public static java.lang.String typeToString(java.lang.reflect.Type type)
Copyright © 2019. All rights reserved.