Module org.jfree.chart3d
Package org.jfree.chart3d.data
Interface KeyedValues<K extends Comparable<K>,T>
- Type Parameters:
K- the key type (must implement Comparable).T- the value type.
- All Superinterfaces:
Values<T>
- All Known Subinterfaces:
PieDataset3D<K>
- All Known Implementing Classes:
DefaultKeyedValues,StandardPieDataset3D
A list of values that are associated with unique keys.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the index for the specified key, or-1if the key is not present in the list.getKey(int index) Returns the key for the specified item in the list.getKeys()Returns a list of all the keys.Returns the value associated with the specified key, ornull.Methods inherited from interface org.jfree.chart3d.data.Values
getDoubleValue, getItemCount, getValue
-
Method Details
-
getKey
Returns the key for the specified item in the list.- Parameters:
index- the item index.- Returns:
- The key.
-
getIndex
Returns the index for the specified key, or-1if the key is not present in the list.- Parameters:
key- the key (nullnot permitted).- Returns:
- The item index, or
-1.
-
getKeys
Returns a list of all the keys. Note that the list will be a copy, so modifying it will not impact this data structure.- Returns:
- A list of keys (possibly empty, but never
null).
-
getValue
Returns the value associated with the specified key, ornull.- Parameters:
key- the key (nullnot permitted).- Returns:
- The value (possibly
null).
-