org.itracker.model
Class NameValuePair
java.lang.Object
org.itracker.model.AbstractEntity
org.itracker.model.NameValuePair
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Entity>, Entity
public class NameValuePair
- extends AbstractEntity
Class provides basic storage for name values pairs. The name is usually a key
of some type, like a status number, and the value is a localized name for
that key.
- See Also:
- Serialized Form
| Methods inherited from class org.itracker.model.AbstractEntity |
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate |
KEY_COMPARATOR
public static final Comparator<NameValuePair> KEY_COMPARATOR
VALUE_COMPARATOR
public static final Comparator<NameValuePair> VALUE_COMPARATOR
NameValuePair
public NameValuePair(String name,
String value)
getName
public String getName()
- Returns the name of the name/value pair.
setName
public void setName(String name)
- Sets the name of the name/value pair.
getValue
public String getValue()
- Returns the value of the name/value pair.
setValue
public void setValue(String value)
- Sets the value of the name/value pair.
compareKeyTo
public int compareKeyTo(NameValuePair other)
compareValueTo
public int compareValueTo(NameValuePair other)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2002-2012 itracker. All Rights Reserved.