/** * Adds a new value to the collection, or updates an existing value. * This method passes control directly to the * {@link #setValue(Comparable, Number)} method. * * @param key the key ({@code null} not permitted). * @param value the value ({@code null} permitted). */ public void addValue(Comparable key, Number value) { setValue(key, value); }
/** * Adds a new value to the collection, or updates an existing value. * This method passes control directly to the * {@link #setValue(Comparable, Number)} method. * * @param key the key (<code>null</code> not permitted). * @param value the value (<code>null</code> permitted). */ public void addValue(Comparable key, Number value) { setValue(key, value); }
/** * Updates an existing value, or adds a new value to the collection. * * @param key the key ({@code null} not permitted). * @param value the value. */ public void setValue(Comparable key, double value) { setValue(key, new Double(value)); }
/** * Updates an existing value, or adds a new value to the collection. * * @param key the key (<code>null</code> not permitted). * @param value the value. */ public void setValue(Comparable key, double value) { setValue(key, new Double(value)); }
/** * Sets the data value for a key and sends a {@link DatasetChangeEvent} to * all registered listeners. * * @param key the key ({@code null} not permitted). * @param value the value. * * @throws IllegalArgumentException if {@code key} is * {@code null}. */ public void setValue(Comparable key, Number value) { this.data.setValue(key, value); fireDatasetChanged(); }
/** * Sets the data value for a key and sends a {@link DatasetChangeEvent} to * all registered listeners. * * @param key the key (<code>null</code> not permitted). * @param value the value. * * @throws IllegalArgumentException if <code>key</code> is * <code>null</code>. */ public void setValue(Comparable key, Number value) { this.data.setValue(key, value); fireDatasetChanged(); }
row.setValue(columnKey, value);
row.setValue(columnKey, value);
String key = stringIntegerEntry.getKey(); int entryValue = stringIntegerEntry.getValue(); kv.setValue(key, entryValue); total += entryValue;