public class NameValue
extends java.lang.Object
parameter = attribute "=" value attribute = token value = token | quoted-string
Constructor and Description |
---|
NameValue(java.lang.String name,
java.lang.String value)
Default Constructor taking a name and a value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
Gets the name.
|
java.lang.String |
getValue()
Gets the value.
|
int |
hashCode() |
java.lang.String |
toString() |
public NameValue(java.lang.String name, java.lang.String value)
name
- The name.value
- The value.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String getName()
public java.lang.String getValue()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object