Class ValueMap


  • public final class ValueMap
    extends com.google.gwt.core.client.JavaScriptObject
    Old abstraction for a UIDL JSON message.
    Since:
    1.0
    Author:
    Vaadin Ltd
    • Constructor Detail

      • ValueMap

        protected ValueMap()
        JSO constructor.
    • Method Detail

      • getInt

        public int getInt​(String name)
        Gets the value with the given key as an integer.
        Parameters:
        name - the map key
        Returns:
        the value as an integer
      • getString

        public String getString​(String name)
        Gets the value with the given key as a string.
        Parameters:
        name - the map key
        Returns:
        the value as a string
      • getJSStringArray

        public JsArray<String> getJSStringArray​(String name)
        Gets the value with the given key as an string array.
        Parameters:
        name - the map key
        Returns:
        the value as a string array
      • containsKey

        public boolean containsKey​(String name)
        Checks if the map contains the given key.
        Parameters:
        name - the map key
        Returns:
        true if the map contains the key, false otherwise
      • getValueMap

        public ValueMap getValueMap​(String name)
        Gets the value with the given key as a map.
        Parameters:
        name - the map key
        Returns:
        the value as a map