public final class NameValuePair extends java.lang.Object implements java.lang.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(java.lang.Object other) |
CstString |
getName()
Gets the name.
|
Constant |
getValue()
Gets the value.
|
int |
hashCode() |
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int compareTo(NameValuePair other)
Instances of this class compare in name-major and value-minor order.
compareTo in interface java.lang.Comparable<NameValuePair>public CstString getName()
non-null; the namepublic Constant getValue()
non-null; the valueCopyright © 2020. All Rights Reserved.