Package org.apache.tapestry5.upload.internal.services

## Class ParameterValue

- java.lang.Object
- - org.apache.tapestry5.upload.internal.services.ParameterValue

-     public class ParameterValue
      extends Object

  Holds single or multivalued values.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static ParameterValue` | `NULL` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ParameterValue​(String value)` |
    `ParameterValue​(String... values)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `add​(String value)` |
    `boolean` | `isMulti()` |
    `String[]` | `multi()` |
    `String` | `single()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### NULL

          public static final ParameterValue NULL

  - ### Constructor Detail

    - #### ParameterValue

          public ParameterValue​(String value)

    - #### ParameterValue

          public ParameterValue​(String... values)

  - ### Method Detail

    - #### single

          public String single()

      Returns:
        Single value of parameter (or first value if there are multiple values)

    - #### multi

          public String[] multi()

      Returns:
        All values of parameter

    - #### add

          public void add​(String value)

    - #### isMulti

          public boolean isMulti()