Class ClassUtils
java.lang.Object
org.ghotibeaun.json.converters.utils.ClassUtils
public final class ClassUtils extends Object
-
Method Summary
Modifier and Type Method Description static Converter
createConverter(Class<?> converterClass, ConverterOption<?>... option)
static <T> T
createInstance(Class<T> classToCreate)
Create a new class instancestatic <T> T
createInstance(Class<T> classToCreate, Class<?>[] argTypes, Object... args)
static ValueConverter<?>
createValueConverter(Class<?> classToCreate, String... args)
-
Method Details
-
createInstance
Create a new class instance- Type Parameters:
T
- the class type- Parameters:
classToCreate
- The class- Returns:
- a new instance of the class;
- Throws:
JSONConversionException
-
createInstance
public static <T> T createInstance(Class<T> classToCreate, Class<?>[] argTypes, Object... args) throws JSONConversionException- Throws:
JSONConversionException
-
createValueConverter
public static ValueConverter<?> createValueConverter(Class<?> classToCreate, String... args) throws JSONConversionException- Throws:
JSONConversionException
-
createConverter
public static Converter createConverter(Class<?> converterClass, ConverterOption<?>... option) throws JSONConversionException- Throws:
JSONConversionException
-