Class LazyMap

java.lang.Object
java.util.AbstractMap<String,Object>
org.apache.groovy.json.internal.LazyMap
All Implemented Interfaces:
Map<String,Object>

public class LazyMap extends AbstractMap<String,Object>
This maps only builds once you ask for a key for the first time. It is designed to not incur the overhead of creating a map unless needed.
  • Constructor Details

    • LazyMap

      public LazyMap()
      Creates a lazy map with the default key and value buffer size.
    • LazyMap

      public LazyMap(int initialSize)
      Creates a lazy map with a caller-supplied key and value buffer size.
      Parameters:
      initialSize - initial buffer size
  • Method Details