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 and Description
    --- | ---
    `static ParameterValue` | `NULL`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ParameterValue(String... values)`
    `ParameterValue(String value)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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()

5.6.1 - Copyright © 2003-2020 The Apache Software Foundation.