@Override public HistoricalDataCursor getCursor(EpochTimeRange range) { if (m_data != null) { final ArrayList<HistoricalData> list = new ArrayList<HistoricalData>(); list.add(m_data); P_HistoricalDataIndexCache indexCache = new P_HistoricalDataIndexCache(m_data.getEpochTime(), m_data.getEpochTime(), 0, 0); return new P_HistoricalDataCursor_List(list, indexCache); } else { return EMPTY_CURSOR; } }
@Override public EpochTimeRange getRange() { if (m_data != null) { return EpochTimeRange.instant(m_data.getEpochTime()); } else { return EpochTimeRange.NULL; } }
private boolean isDataInRange(final EpochTimeRange range) { return m_data != null && m_data.getEpochTime().isBetween_inclusive(range); }