Package com.storedobject.chart
Class AbstractDataStream<T>
java.lang.Object
com.storedobject.chart.AbstractDataStream<T>
- Type Parameters:
- T- Data type.
- All Implemented Interfaces:
- AbstractDataProvider<T>,- ComponentPart,- ComponentProperty
- Direct Known Subclasses:
- DataStream,- DateStream,- TimeStream
A data provider implementation to provide data from a 
Stream.- Author:
- Syam
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.storedobject.chart.AbstractDataProviderAbstractDataProvider.NumberComparator
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal DataTypeGet the value type of the data.final intGet the current serial number (Serial number used for internal purposes only).final voidsetSerial(int serial) Set a serial number (Serial number used for internal purposes only).stream()Data provided by this provider as a stream.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.chart.AbstractDataProviderasList, create, create, encode, encodeJSON, getComparator, getId, getMax, getMin, getName, validateMethods inherited from interface com.storedobject.chart.ComponentPartclassName, getRenderingIndex, setName, setRenderingIndex
- 
Constructor Details- 
AbstractDataStream
 
- 
- 
Method Details- 
streamDescription copied from interface:AbstractDataProviderData provided by this provider as a stream.Note: The Streamshould be reproducible after a terminal operation.- Specified by:
- streamin interface- AbstractDataProvider<T>
- Returns:
- Stream of data values.
 
- 
getDataTypeDescription copied from interface:AbstractDataProviderGet the value type of the data.- Specified by:
- getDataTypein interface- AbstractDataProvider<T>
- Returns:
- Value type.
 
- 
setSerialpublic final void setSerial(int serial) Description copied from interface:ComponentPartSet a serial number (Serial number used for 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:
- setSerialin interface- ComponentPart
- Parameters:
- serial- Serial number to set.
 
- 
getSerialpublic final int getSerial()Description copied from interface:ComponentPartGet the current serial number (Serial number used for internal purposes only). The serial number set by theComponentPart.setSerial(int)method should be returned by this method.- Specified by:
- getSerialin interface- ComponentPart
- Returns:
- Current serial number.
 
 
-