Class JSHashMap

java.lang.Object
com.oracle.truffle.js.runtime.util.JSHashMap

public final class JSHashMap extends Object
ES6-compliant hash map implementation.
  • Constructor Details

    • JSHashMap

      public JSHashMap()
  • Method Details

    • size

      public int size()
    • put

      public void put(Object key, Object value)
      Insert new entry, if key does not already exist, otherwise update the existing entry's value.
    • get

      public Object get(Object key)
    • has

      public boolean has(Object key)
    • remove

      public boolean remove(Object key)
    • clear

      public void clear()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEntries

      public JSHashMap.Cursor getEntries()
    • copy

      public JSHashMap copy()