public class StringMapCodec extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
decode(Map<String,String> buf,
Class<T> clazz)
Decodes object from the string map.
|
static <T> T |
decode(Map<String,String> buf,
String prefix,
Class<T> clazz)
Decodes object from the string map.
|
static Map<String,String> |
encode(Object object)
Encodes object to the string map.
|
static Map<String,String> |
encode(Object object,
String prefix)
Encodes object to the string map.
|
public static Map<String,String> encode(Object object)
object - input objectpublic static Map<String,String> encode(Object object, String prefix)
object - input objectprefix - prefix to use for the map keyspublic static <T> T decode(Map<String,String> buf, Class<T> clazz)
T - object typebuf - data bufferclazz - desired class after extractionCopyright © 2016. All rights reserved.