public static interface BleNodeConfig.HistoricalDataFactory
BleNodeConfig.historicalDataFactory
to return custom subclasses
of HistoricalData
if you would like. For example
you might have a graphing library which requires a "Point" interface with methods getX()
and getY()
. You could then create a factory that returns subclasses of
HistoricalData
that implement this interface, so you don't
need to duplicate the data and waste memory.Modifier and Type | Method and Description |
---|---|
HistoricalData |
newHistoricalData(byte[] data,
EpochTime epochTime)
Return a new subclass of
HistoricalData that for example implements a custom interface
for another library that handles graphing or analytics. |
HistoricalData newHistoricalData(byte[] data, EpochTime epochTime)
HistoricalData
that for example implements a custom interface
for another library that handles graphing or analytics.