public DataSourceSeriesEntry<T> getLastEntry() {
return data.isEmpty() ? null : data.getLast();
}
public void addEntry(DashboardRepository repository) {
LastServerCheckTime time = repository
.getData(LastServerCheckTime.class).get(key);
Date timeValue = time == null ? null : time.getValue();
if (timeValue == null)
return;
D source = repository.getData(dataSource).get(key);
T value = source == null ? null : source.getValue();