org.gcube.portlets.user.timeseries.charts.support.types
Class ValueEntry<T extends Number>

java.lang.Object
  extended by 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

Constructor Summary
ValueEntry(String label, T value)
           
ValueEntry(T value)
           
 
Method Summary
 String getLabel()
           
 T getValue()
           
 void setLabel(String label)
           
 void setValue(T value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueEntry

public ValueEntry(T value)
           throws InvalidParameterException
Throws:
InvalidParameterException

ValueEntry

public ValueEntry(String label,
                  T value)
           throws InvalidParameterException
Throws:
InvalidParameterException
Method Detail

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 © 2012. All Rights Reserved.