public class

TypeUtils

extends Object
java.lang.Object
   ↳ com.google.gwt.autobean.server.impl.TypeUtils

Class Overview

Shared code for answering question about Class objects. This is a server-compatible analog to ModelUtils.

Summary

Public Methods
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 Class<?> maybeAutobox(Class<?> domainType)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Class<?> ensureBaseType (Type type)

Similar to ModelUtils#ensureBaseType(JType) but for the reflection API.

public static Object getDefaultPrimitiveValue (Class<?> clazz)

Given a primitive Class type, return a default value.

public static Type[] getParameterization (Class<?> intf, Type... types)

public static Type getSingleParameterization (Class<?> intf, Type... types)

public static boolean isValueType (Class<?> clazz)

public static Class<?> maybeAutobox (Class<?> domainType)