|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeyedValues
An ordered list of (key, value) items where the keys are unique and
non-null
.
Values
,
DefaultKeyedValues
Method Summary | |
---|---|
int |
getIndex(Comparable key)
Returns the index for a given key. |
Comparable |
getKey(int index)
Returns the key associated with the item at a given position. |
List |
getKeys()
Returns the keys for the values in the collection. |
Number |
getValue(Comparable key)
Returns the value for a given key. |
Methods inherited from interface org.jfree.data.Values |
---|
getItemCount, getValue |
Method Detail |
---|
Comparable getKey(int index)
index
- the item index (in the range 0
to
getItemCount() - 1
).
null
).
IndexOutOfBoundsException
- if index
is not in the
specified range.int getIndex(Comparable key)
key
- the key (null
not permitted).
-1
if the key is unrecognised.
IllegalArgumentException
- if key
is
null
.List getKeys()
null
).Number getValue(Comparable key)
key
- the key.
null
).
UnknownKeyException
- if the key is not recognised.
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |