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, _getStrpublic MapWriterMap(Map delegate)
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap in interface MapWriterIOExceptionpublic Object _get(String path, Object def)
NavigableObject_get in interface NavigableObjectpath - 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 NavigableObjectpath - the full path to that object such as ["a","b","c[4]","d"] etcdef - the defaultpublic int _size()
_size in interface NavigableObjectpublic Map<String,Object> toMap(Map<String,Object> map)
MapSerializabletoMap in interface MapSerializabletoMap in interface MapWriterCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.