org.gcube.portlets.user.timeseries.charts.support.types
Class ValueEntry<T extends Number>
java.lang.Object
org.gcube.portlets.user.timeseries.charts.support.types.ValueEntry<T>
- All Implemented Interfaces:
- Serializable
public class ValueEntry<T extends Number>
- extends Object
- implements Serializable
Each value entry in a graph is identified by its numerical value and
possibly its label.
Note: the type T must be numerical (int, double, etc.).
The label is not mandatory.
- Author:
- Daniele Strollo (ISTI-CNR)
- See Also:
- Serialized Form
ValueEntry
public ValueEntry(T value)
throws InvalidParameterException
- Throws:
InvalidParameterException
ValueEntry
public ValueEntry(String label,
T value)
throws InvalidParameterException
- Throws:
InvalidParameterException
setLabel
public final void setLabel(String label)
setValue
public final void setValue(T value)
throws InvalidParameterException
- Throws:
InvalidParameterException
getLabel
public final String getLabel()
getValue
public final T getValue()
toString
public final String toString()
- Overrides:
toString
in class Object
Copyright © 2013. All Rights Reserved.