|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pepper.platform.util.NameValue
public class NameValue
NameValue represents a name-value pair.
Constructor Summary | |
---|---|
NameValue()
Default Constructor. |
|
NameValue(String name,
Object value)
Constructs the NameValue using the specified name and value arguments. |
Method Summary | |
---|---|
int |
compareTo(Object obj)
|
boolean |
equals(Object obj)
Compare name, value |
String |
getName()
Returns the name. |
Object |
getValue()
Returns the value. |
void |
setName(String name)
Sets the name. |
void |
setValue(Object value)
Sets the value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NameValue()
public NameValue(String name, Object value)
name
- the name.value
- the value.Method Detail |
---|
public String getName()
public void setName(String name)
name
- the name to set.public Object getValue()
public void setValue(Object value)
value
- the value to set.public int compareTo(Object obj)
compareTo
in interface Comparable
Comparable
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |