de.esprit.common.util

## Class Parameter

- java.lang.Object
- - de.esprit.common.util.Parameter

- All Implemented Interfaces:
    java.io.Serializable

      public class Parameter
      extends java.lang.Object
      implements java.io.Serializable

  This class encapsulates string alike key-value pair whereas the key must not be null. Its toString() method prints a property String in the format key=value.
  Author:
    Rainer Buesch
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Parameter(java.lang.String param)` Read parameter of the form key=value
    `Parameter(java.lang.String param, char sep)`
    `Parameter(java.lang.String key, java.lang.String value)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object obj)` Is considered to be equal if the keys are equal
    `java.lang.String` | `getKey()`
    `java.lang.String` | `getValue()`
    `java.lang.String[]` | `getValues()` If the value is a valueSeparator-separated list it will be returned as a String[] for convenience
    `int` | `hashCode()`
    `void` | `setSeparator(char sep)`
    `void` | `setValue(java.lang.String value)`
    `java.lang.String` | `toString()`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Parameter

          public Parameter(java.lang.String param)

      Read parameter of the form key=value

    - #### Parameter

          public Parameter(java.lang.String param,
                   char sep)

    - #### Parameter

          public Parameter(java.lang.String key,
                   java.lang.String value)

  - ### Method Detail

    - #### setSeparator

          public void setSeparator(char sep)

    - #### getKey

          public java.lang.String getKey()

    - #### getValue

          public java.lang.String getValue()

    - #### setValue

          public void setValue(java.lang.String value)

    - #### getValues

          public java.lang.String[] getValues()

      If the value is a valueSeparator-separated list it will be returned as a String[] for convenience

    - #### equals

          public boolean equals(java.lang.Object obj)

      Is considered to be equal if the keys are equal
      Overrides:
        `equals` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

Copyright © 2014 EsprIT-Systems. All Rights Reserved.