Java org.jfree.data DefaultKeyedValues fields, constructors, methods, implement or subclass

Example usage for Java org.jfree.data DefaultKeyedValues fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jfree.data DefaultKeyedValues.

The text is from its open source code.

Constructor

DefaultKeyedValues()
Creates a new collection (initially empty).

Method

voidaddValue(Comparable key, double value)
Updates an existing value, or adds a new value to the collection.
voidaddValue(Comparable key, Number value)
Adds a new value to the collection, or updates an existing value.
voidclear()
Clears all values from the collection.
Objectclone()
Returns a clone.
booleanequals(Object obj)
Tests if this object is equal to another.
ClassgetClass()
Returns the runtime class of this Object .
intgetIndex(Comparable key)
Returns the index for a given key.
intgetItemCount()
Returns the number of items (values) in the collection.
ComparablegetKey(int index)
Returns a key.
ListgetKeys()
Returns the keys for the values in the collection.
NumbergetValue(int item)
Returns a value.
NumbergetValue(Comparable key)
Returns the value for a given key.
voidinsertValue(int position, Comparable key, double value)
Inserts a new value at the specified position in the dataset or, if there is an existing item with the specified key, updates the value for that item and moves it to the specified position.
voidinsertValue(int position, Comparable key, Number value)
Inserts a new value at the specified position in the dataset or, if there is an existing item with the specified key, updates the value for that item and moves it to the specified position.
voidremoveValue(int index)
Removes a value from the collection.
voidremoveValue(Comparable key)
Removes a value from the collection.
voidsetValue(Comparable key, double value)
Updates an existing value, or adds a new value to the collection.
voidsetValue(Comparable key, Number value)
Updates an existing value, or adds a new value to the collection.
voidsortByKeys(SortOrder order)
Sorts the items in the list by key.
voidsortByValues(SortOrder order)
Sorts the items in the list by value.