Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.http.message
Class BasicNameValuePair

    java.lang.Object
      org.apache.http.message.BasicNameValuePair

All Implemented Interfaces:
  Serializable, Cloneable, NameValuePair

    @Contract(threading=IMMUTABLE)
    public class BasicNameValuePair

extends Object
implements NameValuePair, Cloneable, Serializable

Basic implementation of `NameValuePair`.

Since:
  4.0
See Also:
  Serialized Form

Constructor Summary
`BasicNameValuePair(String name, String value)` Default Constructor taking a name and a value.

Method Summary
`Object` | `clone()`
`boolean` | `equals(Object object)`
`String` | `getName()` Gets the name of this pair.
`String` | `getValue()` Gets the value of this pair.
`int` | `hashCode()`
`String` | `toString()`

Methods inherited from class java.lang.Object
`finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### BasicNameValuePair

    public BasicNameValuePair(String name,
                              String value)

  Default Constructor taking a name and a value. The value may be null.

  Parameters:
    `name` - The name.
    `value` - The value.

Method Detail

### getName

    public String getName()

  Description copied from interface: `NameValuePair`
  Gets the name of this pair.

  Specified by:
    `getName` in interface `NameValuePair`
  Returns:
    the name of this pair, never `null`.

### getValue

    public String getValue()

  Description copied from interface: `NameValuePair`
  Gets the value of this pair.

  Specified by:
    `getValue` in interface `NameValuePair`
  Returns:
    the value of this pair, may be `null`.

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### equals

    public boolean equals(Object object)

  Overrides:
    `equals` in class `Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`

### clone

    public Object clone()
                 throws CloneNotSupportedException

  Overrides:
    `clone` in class `Object`
  Throws:
    `CloneNotSupportedException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.