public final class Classes extends Object
Internal API: these methods are part of the internal API and may be removed, have their signature change, or have their access level decreased from public to protected, package, or private in future versions without notice.
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
instantiate(Class<T> klass)
Instantie new class instance using its empty constructor (may be a private constructor).
|
static boolean |
isPresent(String className)
Check if a given class is available in classpath.
|
public static boolean isPresent(String className)
className - Fully qualified name of class to test.true if class is available, false otherwise.public static <T> T instantiate(Class<T> klass)
T - The new instance type.klass - The class.Copyright © 2019. All rights reserved.