Class Utils
object ClassUtils
Functions
Link copied to clipboard
Get the static object
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun invokeStaticMethod(clz: Class<*>, methodName: String, returnType: Class<*>? = null, paramTypes: ParamTypes, params: Params): Any?
Invoke the static method in the class
Link copied to clipboard
Link copied to clipboard
Check if two classes are equal or match the same primitive type
Link copied to clipboard
Load the class or null if not found
Link copied to clipboard
Load the first exists class or throw exception all not found
Link copied to clipboard
Load the first exists class or null
Link copied to clipboard
fun newInstance(clz: Class<*>, paramTypes: ParamTypes = paramTypes(), params: Params = params()): Any
Create a new instance of the class
Link copied to clipboard
Create a new instance of the class
Link copied to clipboard
Set the static object
Link copied to clipboard
Link copied to clipboard
Cast class to primitive type if possible