Class Parameter.Builder

    • Method Detail

      • value

        public Parameter.Builder value​(Object value)
        Adds on new value to the parameter. The value will have the number of previous values as an id and the given object as data.

        If a Value.Builder is given as a parameter the value will be build from the builder.

        Parameters:
        value - the value object to be added. May be null as it will be wrapped in Value
        Returns:
        this
      • values

        public Parameter.Builder values​(Object... values)
        Adds all new values to the parameter. The values will have the ids starting at the number of previous values, and the objects as data.

        If a Value.Builder is given as a parameter the value will be build from the builder.

        Parameters:
        values - the value objects to be added. May be null each as they will be wrapped in Value
        Returns:
        this
      • build

        public Parameter build()
        Builds a new parameter. If less than two values were added, this will throw an exception.
        Returns:
        the constructed parameter