- Type Parameters:
T- The value type.
- All Known Subinterfaces:
KeyedValues<K,,T> PieDataset3D<K>
- All Known Implementing Classes:
DefaultKeyedValues,StandardPieDataset3D
public interface Values<T>
A generic representation of a one dimensional list of data values.
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetDoubleValue(int item) Returns the value for the specified item as a double primitive, provided that the data type is a subclass ofNumber.intReturns the number of items in the dataset.getValue(int item) Returns the value for the specified item.
-
Method Details
-
getItemCount
int getItemCount()Returns the number of items in the dataset.- Returns:
- The number of items in the dataset.
-
getValue
Returns the value for the specified item.- Parameters:
item- the item index.- Returns:
- The value for the specified item (possibly
null).
-
getDoubleValue
Returns the value for the specified item as a double primitive, provided that the data type is a subclass ofNumber. Where thegetValue(int)method returnsnull, this method returnsDouble.NaN.- Parameters:
item- the item index.- Returns:
- The value for the specified item.
-