|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.edf.adapter.PVal
public class PVal
A name-value pair, a collection of which constitutes a Record.
Constructor Summary | |
---|---|
PVal(java.lang.String name,
java.lang.String value)
Constructs a PVal from a name and a value. |
Method Summary | |
---|---|
int |
compareTo(PVal other)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Gets the name of this PVal. |
java.lang.String |
getValue()
Gets the value of this PVal. |
int |
hashCode()
|
void |
setName(java.lang.String name)
Sets the name of this PVal. |
void |
setValue(java.lang.String value)
Sets the value of this PVal. |
java.lang.String |
toString()
String representation of this PVal. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PVal(java.lang.String name, java.lang.String value)
name
- the name given to this PVal.value
- the value given to this PVal.
java.lang.IllegalArgumentException
- if name is nullMethod Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name assigned to this PVal.
java.lang.IllegalArgumentException
- if name is nullpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value assigned to this PVal.public java.lang.String toString()
name=value
.
toString
in class java.lang.Object
public int compareTo(PVal other)
compareTo
in interface java.lang.Comparable<PVal>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |