public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
coerceTypes(Class clazz,
Object value)
Coerce numeric types when mapping properties from nodes to entities.
|
static Map<String,Object> |
map(Object... keysAndValues) |
static Map<String,Object> |
mapCollection(String collectionName,
Collection<Property<String,Object>> properties) |
static int |
size(Iterable<?> iterable) |
static int |
size(Iterator<?> iterator) |
public static final Map<String,Object> mapCollection(String collectionName, Collection<Property<String,Object>> properties)
public static int size(Iterable<?> iterable)
public static int size(Iterator<?> iterator)
public static Object coerceTypes(Class clazz, Object value)
clazz - the entity field typevalue - the property valueCopyright © 2016 Neo Technology, Inc.. All rights reserved.