Interface JSMap<K,​E extends JSValue>

    • Method Detail

      • size

        int size()
        Returns the number of entries in this map. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
        Returns:
        the number of entries in this map
      • getKeys

        List<K> getKeys()
        Returns:
        all the keys or empty list
      • get

        List<JSProperty<E>> get()
        Returns:
        all the entries as properties or empty list
      • get

        JSProperty<E> get​(K key)
        Parameters:
        key - for entry
        Returns:
        the property or null
      • put

        JSProperty<E> put​(K key,
                          E val)
        Parameters:
        key - for value to be added to map
        val - to be added to map
        Returns:
        the new property
      • put

        void put​(JSProperty<E> entry)
        Parameters:
        entry - to be added to map
      • remove

        void remove​(K key)
        Parameters:
        key - to remove
      • remove

        void remove​(JSProperty<E> entry)
        Parameters:
        entry - to remove
      • makeEntry

        JSProperty<E> makeEntry​(K key)
        Create and add a new empty entry
        Parameters:
        key - - the entry key