Package | Description |
---|---|
js.converter |
Convert value types to and from string representation.
|
js.util |
Utility functions for strings, files, dynamic types manipulation, parameters validation and more.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
NumbersConverter.asObject(String string,
Class<T> valueType)
Convert a string to a number of given type.
|
<T> T |
CharactersConverter.asObject(String string,
Class<T> valueType)
Return the first character from given string.
|
Modifier and Type | Method and Description |
---|---|
static Class<?> |
Types.getBoxingClass(Type t)
Get boxing class for requested type.
|
static String |
Strings.injectProperties(String string)
Inject system properties into text with variables.
|
static <T> T |
Classes.newInstance(Class<T> clazz,
Object... arguments)
Create a new object instance of specified class.
|
static <T> T |
Classes.newInstance(Class<T> clazz,
Object... arguments)
Create a new object instance of specified class.
|
private static <T> T |
Classes.newRegisteredInstance(Map<Class<?>,Class<?>> implementationsRegistry,
Type interfaceType)
Lookup implementation for requested interface into given registry and return a new instance of it.
|
static void |
Classes.setFieldValue(Object object,
Field field,
Object value)
Set field value for object instance, or class if given object instance is null.
|
Copyright © 2018. All rights reserved.