com.pepper.platform.util
Class NameValue

java.lang.Object
  extended by com.pepper.platform.util.NameValue
All Implemented Interfaces:
Serializable, Comparable

public class NameValue
extends Object
implements Serializable, Comparable

NameValue represents a name-value pair.

See Also:
Serialized Form

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

NameValue

public NameValue()
Default Constructor.


NameValue

public NameValue(String name,
                 Object value)
Constructs the NameValue using the specified name and value arguments.

Parameters:
name - the name.
value - the value.
Method Detail

getName

public String getName()
Returns the name.

Returns:
the name.

setName

public void setName(String name)
Sets the name.

Parameters:
name - the name to set.

getValue

public Object getValue()
Returns the value.

Returns:
the value.

setValue

public void setValue(Object value)
Sets the value.

Parameters:
value - the value to set.

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable
See Also:
Comparable

equals

public boolean equals(Object obj)
Compare name, value

Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.