public class LinkedHashMapWriter<V> extends LinkedHashMap<String,V> implements MapWriter
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
MapWriter.EntryWriter
Constructor and Description |
---|
LinkedHashMapWriter() |
LinkedHashMapWriter(int initialCapacity) |
LinkedHashMapWriter(Map<? extends String,? extends V> m) |
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.
|
String |
toString() |
void |
writeMap(MapWriter.EntryWriter ew) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode
finalize, getClass, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _getStr, _getStr
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public LinkedHashMapWriter(int initialCapacity)
public LinkedHashMapWriter()
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 String toString()
toString
in class AbstractMap<String,V>
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.