public class MapSerializerUtil extends Object
| Constructor and Description |
|---|
MapSerializerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
add(Map<String,Object> map,
String name,
Object value)
Add the value to the map.
|
static void |
add(Map<String,Object> map,
String name,
Object value,
Object defaultValue) |
static void |
addAll(Map<String,Object> map,
Map<String,Object> values) |
static Object |
getValue(Object value) |
public static void add(Map<String,Object> map, String name, Object value)
Add the value to the map. If the value is a MapSerializer then add the result of
MapSerializer.toMap(). If the value is a supported type add it to the map, otherwise
convert the value to a string. Null values will be ignored.
map - name - value - Copyright © 2015 Revolution Systems Inc.. All rights reserved.