Class GenericQueryParams

    • Constructor Detail

      • GenericQueryParams

        public GenericQueryParams()
        Creates a new GenericQueryParams instance.
      • GenericQueryParams

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

      • getValue

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

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

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

        public boolean contains​(String key)
        Checks whether this QueryParams contains the given key param.
        Specified by:
        contains in interface QueryParams
        Parameters:
        key - the key params.
        Returns:
        true if this QueryParams contains the given key.