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 final ParameterValue`
  `NULL`

- ## Constructor Summary

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

- ## Method Summary

  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 Details

  - ### NULL

    public static final ParameterValue NULL

- ## Constructor Details

  - ### ParameterValue

    public ParameterValue(String value)

  - ### ParameterValue

    public ParameterValue(String... values)

- ## Method Details

  - ### 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()