Class Param


  • public final class Param
    extends Object
    Param.
    Author:
    pchretien
    • Method Detail

      • of

        public static Param of​(String name,
                               Integer value)
        Creates a new Integer param
        Parameters:
        name - the name of the param
        value - the value of the param
        Returns:
        new param
      • of

        public static Param of​(String name,
                               String value)
        Creates a new param
        Parameters:
        name - the name of the param
        value - the value of the param
        Returns:
        new param
      • getValue

        public String getValue()
        Returns:
        the value of the param
      • getName

        public String getName()
        Returns:
        the name of the param
      • getValue

        public <O> O getValue​(Class<O> paramType)
        Returns the param ad a typed value .
        Parameters:
        paramType - Type of the param
        Returns:
        the value of the param
      • getValueAsString

        public String getValueAsString()
        Returns the param as a String.
        Returns:
        the value of the param
      • getValueAsInt

        public int getValueAsInt()
        Returns the param as an int.
        Returns:
        the value of the param
      • getValueAsLong

        public long getValueAsLong()
        Returns the param as a long.
        Returns:
        the value of the param
      • getValueAsBoolean

        public boolean getValueAsBoolean()
        Returns the param as a boolean .
        Returns:
        the value of the param