Class QueryParams


  • public class QueryParams
    extends Object
    • Constructor Detail

      • QueryParams

        public QueryParams​(Map<String,​Object> params)
        Creates a new QueryParams instance.
        Parameters:
        params - the key-value parameters.
    • Method Detail

      • getValue

        public <V> V getValue​(String key)
        Gets the parameter for the given key.
        Parameters:
        key - the parameter key.
        Returns:
        the object value.
      • getString

        public String getString​(String key)
        Gets the parameter as string for the given key.
        Parameters:
        key - the parameter key.
        Returns:
        the string value.
      • getLong

        public Long getLong​(String key)
        Gets the parameter as long for the given key.
        Parameters:
        key - the parameter key.
        Returns:
        the long value.
      • contains

        public boolean contains​(String key)