Package org.jfree.data
Interface Values
-
- All Known Subinterfaces:
KeyedValues<K>,KeyedValuesDataset,PieDataset<K>
- All Known Implementing Classes:
CategoryToPieDataset,DefaultKeyedValues,DefaultKeyedValuesDataset,DefaultPieDataset,JDBCPieDataset
public interface ValuesAn interface through which (single-dimension) data values can be accessed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetItemCount()Returns the number of items (values) in the collection.java.lang.NumbergetValue(int index)Returns the value with the specified index.
-
-
-
Method Detail
-
getItemCount
int getItemCount()
Returns the number of items (values) in the collection.- Returns:
- The item count (possibly zero).
-
getValue
java.lang.Number getValue(int index)
Returns the value with the specified index.- Parameters:
index- the item index (in the range0togetItemCount() -1).- Returns:
- The value (possibly
null). - Throws:
java.lang.IndexOutOfBoundsException- ifindexis not in the specified range.
-
-