net.sf.chainedoptions
Class LabelValueBean
java.lang.Object
net.sf.chainedoptions.LabelValueBean
- All Implemented Interfaces:
- java.lang.Comparable
public class LabelValueBean
- extends java.lang.Object
- implements java.lang.Comparable
Simple name/value pair bean for use in cases where an item has a value and a
display label.
- Author:
- Mattias Arthursson, Ulrik Sandberg
Constructor Summary |
LabelValueBean(java.lang.String label,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
LabelValueBean
public LabelValueBean(java.lang.String label,
java.lang.String value)
getLabel
public java.lang.String getLabel()
- Returns:
- Returns the label.
setLabel
public void setLabel(java.lang.String label)
- Parameters:
label
- The label to set.
getValue
public java.lang.String getValue()
- Returns:
- Returns the value.
setValue
public void setValue(java.lang.String value)
- Parameters:
value
- The value to set.
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright ? 2005. All Rights Reserved.