|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.util.JvNamedValue
public class JvNamedValue
A class representing a value and its name.
| Constructor Summary | |
|---|---|
JvNamedValue(String name,
Object value)
Construct a new JvNamedValue object with the given name
and value. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this object with the specified object for order. |
boolean |
equals(Object o)
Compares the specified object with this entry for equality. |
String |
getName()
Returns the name of the value |
Object |
getValue()
Returns the value. |
int |
hashCode()
Returns the hash code value for this map entry. |
void |
setValue(Object value)
Replaces the value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JvNamedValue(String name,
Object value)
JvNamedValue object with the given name
and value.
name - the name of the valuevalue - the value
IllegalArgumentException - if the name is null or empty| Method Detail |
|---|
public String getName()
public Object getValue()
public void setValue(Object value)
value - the new valuepublic boolean equals(Object o)
equals in class Objecto - object to be compared for equality with this named value
public int hashCode()
hashCode in class Objectpublic int compareTo(Object o)
compareTo in interface Comparableo - the Object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this Object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||