Object Parameters.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Parameters empty() Creates an empty Parameters.
      final Parameters from(Map<String, String> params) Creates a Parameters instance from the provided map.
      final Parameters from(String params) Attempts to create a Parameters from a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • from

         final Parameters from(String params)

        Attempts to create a Parameters from a string.

        When in string form, the parameters should be encoded like the query section of a URL:

        • parameters are separated by ;,

        • the parameter name and value are separated by the first =,

        • in the absence of =, the parameter value is considered to be the empty string,

        • both name and value should use percent-encoding to escape characters,

        • defining a value for the same parameter name twice is considered undefined behavior and an error result is returned.