public class TypeUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Class<?> |
ensureBaseType(Type type)
Similar to ModelUtils#ensureBaseType(JType) but for the reflection API.
|
static Object |
getDefaultPrimitiveValue(Class<?> clazz)
Given a primitive Class type, return a default value.
|
static Type[] |
getParameterization(Class<?> intf,
Type... types) |
static Type |
getSingleParameterization(Class<?> intf,
Type... types) |
static boolean |
isValueType(Class<?> clazz) |
static <V> Class<V> |
maybeAutobox(Class<V> domainType) |
static Type |
resolveGenerics(Class<?> containingType,
Type type) |
public static Class<?> ensureBaseType(Type type)
public static Object getDefaultPrimitiveValue(Class<?> clazz)
public static Type getSingleParameterization(Class<?> intf, Type... types)
public static boolean isValueType(Class<?> clazz)
Copyright © 2016. All rights reserved.