public class DefaultValueDataset extends AbstractDataset implements ValueDataset, Cloneable, org.jfree.util.PublicCloneable, Serializable
null
).
This class provides a default implementation of the ValueDataset
interface.Constructor and Description |
---|
DefaultValueDataset()
Constructs a new dataset, initially empty.
|
DefaultValueDataset(double value)
Creates a new dataset with the specified value.
|
DefaultValueDataset(Number value)
Creates a new dataset with the specified value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests this dataset for equality with an arbitrary object.
|
Number |
getValue()
Returns the value.
|
int |
hashCode()
Returns a hash code.
|
void |
setValue(Number value)
Sets the value and sends a
DatasetChangeEvent to all registered
listeners. |
addChangeListener, clone, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
getClass, notify, notifyAll, toString, wait, wait, wait
addChangeListener, getGroup, removeChangeListener, setGroup
public DefaultValueDataset()
public DefaultValueDataset(double value)
value
- the value.public DefaultValueDataset(Number value)
value
- the initial value (null
permitted).public Number getValue()
public void setValue(Number value)
DatasetChangeEvent
to all registered
listeners.value
- the new value (null
permitted).public boolean equals(Object obj)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics