public class MapWriterMap extends Object implements MapWriter
MapWriter.EntryWriter
Constructor and Description |
---|
MapWriterMap(Map delegate) |
Modifier and Type | Method and Description |
---|---|
Object |
_get(List<String> path,
Object def)
Get a child object value using json path
|
Object |
_get(String path,
Object def)
Get a child object value using json path.
|
int |
_size() |
Map<String,Object> |
toMap(Map<String,Object> map)
Use the passed map to minimize object creation.
|
void |
writeMap(MapWriter.EntryWriter ew) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _getStr, _getStr
public MapWriterMap(Map delegate)
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
public Object _get(String path, Object def)
NavigableObject
_get
in interface NavigableObject
path
- the full path to that object such as a/b/c[4]/d etcdef
- the defaultpublic Object _get(List<String> path, Object def)
NavigableObject
_get
in interface NavigableObject
path
- the full path to that object such as ["a","b","c[4]","d"] etcdef
- the defaultpublic int _size()
_size
in interface NavigableObject
public Map<String,Object> toMap(Map<String,Object> map)
MapSerializable
toMap
in interface MapSerializable
toMap
in interface MapWriter
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.