public final class ClassUtils extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static Class<?> |
getClassByName(String className) |
Gets a class object based on the given class name.
|
static String |
getStringFieldByName(Class<?> c,
String fieldName) |
Provides a String value of a given class field name.
|
public static Class<?> getClassByName(String className)
className - The class to get its object.
Note: The parameter must contain the package and the class name like java.lang.String.null.public static String getStringFieldByName(Class<?> c, String fieldName)
c - The class to search in.fieldName - The field to retrieve the value.null.Copyright © 2025. All rights reserved.