Class Parameter.Builder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Parameter build()
      Builds a new parameter.
      Parameter.Builder value​(java.lang.Object value)
      Adds on new value to the parameter.
      Parameter.Builder values​(java.lang.Object... values)
      Adds all new values to the parameter.
      • Methods inherited from class java.lang.Object

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

      • value

        public Parameter.Builder value​(java.lang.Object value)
        Adds on new value to the parameter. The value will have the number of previous values as an id, the the given object as data.
        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​(java.lang.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.
        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