public class LabeledValueImpl<T> extends java.lang.Object implements LabeledValue<T>, java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
label |
protected int |
maxlen |
protected T |
value |
Constructor and Description |
---|
LabeledValueImpl(java.lang.String label,
T value) |
LabeledValueImpl(java.lang.String label,
T value,
int maxlen) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object other) |
java.lang.String |
getLabel() |
T |
getValue() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
label
protected java.lang.String label
protected T value
protected int maxlen
public LabeledValueImpl(java.lang.String label, T value, int maxlen)
public LabeledValueImpl(java.lang.String label, T value)
public java.lang.String toString()
toString
in interface LabeledValue<T>
toString
in class java.lang.Object
public T getValue()
getValue
in interface LabeledValue<T>
public java.lang.String getLabel()
getLabel
in interface LabeledValue<T>
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable