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

## Class ParameterValue

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

-     public class ParameterValue
      extends java.lang.Object

  Holds single or multivalued values.

- - ### Field Summary

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

  - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `add​(java.lang.String value)` |
    `boolean` | `isMulti()` |
    `java.lang.String[]` | `multi()` |
    `java.lang.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​(java.lang.String value)

    - #### ParameterValue

          public ParameterValue​(java.lang.String... values)

  - ### Method Detail

    - #### single

          public java.lang.String single()

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

    - #### multi

          public java.lang.String[] multi()

      Returns:
        All values of parameter

    - #### add

          public void add​(java.lang.String value)

    - #### isMulti

          public boolean isMulti()