public final class NameValuePair extends Object implements Comparable<NameValuePair>
| Constructor and Description |
|---|
NameValuePair(CstString name,
Constant value)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NameValuePair other) |
boolean |
equals(Object other) |
CstString |
getName()
Gets the name.
|
Constant |
getValue()
Gets the value.
|
int |
hashCode() |
String |
toString() |
public int compareTo(NameValuePair other)
Instances of this class compare in name-major and value-minor order.
compareTo in interface Comparable<NameValuePair>public CstString getName()
non-null; the namepublic Constant getValue()
non-null; the valueCopyright © 2016. All Rights Reserved.