Constructor and Description |
---|
Classes() |
Modifier and Type | Method and Description |
---|---|
static <T> Class<T> |
cast(Class<?> clazz) |
static Class<?> |
extendedForName(String className)
Equivalent of
Class.forName(String) which also returns classes for primitives like
boolean , etc. |
static String |
stringify(Class<?>[] classes) |
public Classes()
public static Class<?> extendedForName(String className) throws ClassNotFoundException
Class.forName(String)
which also returns classes for primitives like
boolean
, etc. n * The name of the class to retrieve. Can be either a normal class
or a primitive class.className
n * If the requested class can not be
found.ClassNotFoundException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.