org.slim3.commons.util
Class GenericsUtil

java.lang.Object
  extended by org.slim3.commons.util.GenericsUtil

public final class GenericsUtil
extends Object

A utility class for generics.

Author:
higa

Method Summary
static Class<?> getRawClass(Type type)
          Returns the raw class.
static Type[] getTypeArguments(Type type)
          Returns the type arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRawClass

public static Class<?> getRawClass(Type type)
Returns the raw class.

Parameters:
type - the type
Returns:
the raw class

getTypeArguments

public static Type[] getTypeArguments(Type type)
Returns the type arguments

Parameters:
type - the type
Returns:
the type arguments


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.