Class LinkedHashMapWriter<V>

All Implemented Interfaces:
Serializable, Cloneable, Map<String,V>, MapSerializable, MapWriter, NavigableObject, org.noggit.JSONWriter.Writable

public class LinkedHashMapWriter<V> extends LinkedHashMap<String,V> implements MapWriter
See Also:
  • Constructor Details

    • LinkedHashMapWriter

      public LinkedHashMapWriter(int initialCapacity)
    • LinkedHashMapWriter

      public LinkedHashMapWriter()
    • LinkedHashMapWriter

      public LinkedHashMapWriter(Map<? extends String,? extends V> m)
  • Method Details

    • writeMap

      public void writeMap(MapWriter.EntryWriter ew) throws IOException
      Description copied from interface: MapWriter
      Writes this object's entries out to ew.
      Specified by:
      writeMap in interface MapWriter
      Throws:
      IOException
    • _get

      public Object _get(String path)
      Description copied from interface: NavigableObject
      Get a child object value using json path. This usually ends up in String split operations use a list of strings where performance is important
      Specified by:
      _get in interface NavigableObject
      Parameters:
      path - the full path to that object such as a/b/c[4]/d etc
      Returns:
      the found value or default
    • _get

      public Object _get(List<String> path, Object def)
      Description copied from interface: NavigableObject
      Get a child object value using json path
      Specified by:
      _get in interface NavigableObject
      Parameters:
      path - the full path to that object such as ["a","b","c[4]","d"] etc
      def - the default
      Returns:
      the found value or default
    • toString

      public String toString()
      Overrides:
      toString in class AbstractMap<String,V>