Package com.storedobject.chart
Class BasicDataProvider<T>
java.lang.Object
com.storedobject.chart.BasicDataProvider<T>
- Type Parameters:
T
- Data type.
- All Implemented Interfaces:
AbstractDataProvider<T>
,ComponentPart
,ComponentProperty
- Direct Known Subclasses:
BasicInternalDataProvider
A basic data provider that can be extended to create customized data providers.
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.storedobject.chart.AbstractDataProvider
AbstractDataProvider.NumberComparator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the value type of the data.final int
Get the current serial number (Serial number used internal purposes only).final void
setSerial
(int serial) Set a serial number (Serial number used internal purposes only).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.chart.AbstractDataProvider
asList, create, create, encode, encodeJSON, getComparator, getId, getMax, getMin, getName, stream, validate
Methods inherited from interface com.storedobject.chart.ComponentPart
className, getRenderingIndex, setName, setRenderingIndex
-
Constructor Details
-
BasicDataProvider
public BasicDataProvider()
-
-
Method Details
-
setSerial
public final void setSerial(int serial) Description copied from interface:ComponentPart
Set a serial number (Serial number used internal purposes only). The implementation of this method must be in such a way that the serial number set here must be returned by theComponentPart.getSerial()
method.- Specified by:
setSerial
in interfaceComponentPart
- Parameters:
serial
- Serial number to set.
-
getSerial
public final int getSerial()Description copied from interface:ComponentPart
Get the current serial number (Serial number used internal purposes only). The serial number set by theComponentPart.setSerial(int)
method should be returned by this method.- Specified by:
getSerial
in interfaceComponentPart
- Returns:
- Current serial number.
-
getDataType
Description copied from interface:AbstractDataProvider
Get the value type of the data.- Specified by:
getDataType
in interfaceAbstractDataProvider<T>
- Returns:
- value type.
-