Class JSMapImpl<K,​E extends JSValue>

    • Constructor Detail

      • JSMapImpl

        public JSMapImpl​(String type,
                         com.fasterxml.jackson.databind.JsonNode node)
      • JSMapImpl

        protected JSMapImpl()
    • Method Detail

      • getPropertyType

        protected abstract String getPropertyType()
      • convertKey

        protected abstract String convertKey​(K key)
        Parameters:
        key - external form
        Returns:
        String
      • convertFieldName

        protected abstract K convertFieldName​(String fieldName)
      • size

        public int size()
        Description copied from interface: JSMap
        Returns the number of entries in this map. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
        Specified by:
        size in interface JSMap<K,​E extends JSValue>
        Returns:
        the number of entries in this map
      • getKeys

        public List<K> getKeys()
        Specified by:
        getKeys in interface JSMap<K,​E extends JSValue>
        Returns:
        all the keys or empty list
      • get

        public JSProperty<E> get​(K key)
        Specified by:
        get in interface JSMap<K,​E extends JSValue>
        Parameters:
        key - for entry
        Returns:
        the property or null
      • put

        public JSProperty<E> put​(K key,
                                 E val)
        Specified by:
        put in interface JSMap<K,​E extends JSValue>
        Parameters:
        key - for value to be added to map
        val - to be added to map
        Returns:
        the new property
      • put

        public void put​(JSProperty<E> entry)
        Specified by:
        put in interface JSMap<K,​E extends JSValue>
        Parameters:
        entry - to be added to map
      • remove

        public void remove​(K key)
        Specified by:
        remove in interface JSMap<K,​E extends JSValue>
        Parameters:
        key - to remove
      • makeEntry

        public JSProperty<E> makeEntry​(K key)
        Description copied from interface: JSMap
        Create and add a new empty entry
        Specified by:
        makeEntry in interface JSMap<K,​E extends JSValue>
        Parameters:
        key - - the entry key