org.jfree.data.KeyedValues |
![]() |
An ordered list of (key, value) items where the keys are unique and
non-null
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the index for a given key.
| |||||||||||
Returns the key associated with the item at a given position.
| |||||||||||
Returns the keys for the values in the collection.
| |||||||||||
Returns the value for a given key.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns the index for a given key.
key | the key (null not permitted). |
---|
-1
if the key is unrecognised.IllegalArgumentException | if key is
null .
|
---|
Returns the key associated with the item at a given position. Note that some implementations allow re-ordering of the data items, so the result may be transient.
index | the item index (in the range 0 to
getItemCount() - 1 ). |
---|
null
).IndexOutOfBoundsException | if index is not in the
specified range.
|
---|
Returns the keys for the values in the collection. Note that you can access the values in this collection by key or by index. For this reason, the key order is important - this method should return the keys in order. The returned list may be unmodifiable.
null
).
Returns the value for a given key.
key | the key. |
---|
null
).UnknownKeyException | if the key is not recognised. |
---|