@Test public void should_return_correct_bydate_value(){ Assert.assertEquals(doubleTimeSeries.getByDate(c1.getTimeInMillis()), doubleTimeSeries.getByDate(c1.getTime()), 0.0); Assert.assertEquals(doubleTimeSeries.getByDate(c2.getTimeInMillis()), doubleTimeSeries.getByDate(c2.getTime()), 0.0); Assert.assertEquals(doubleTimeSeries.getByDate(c3.getTimeInMillis()), doubleTimeSeries.getByDate(c3.getTime()), 0.0); }
public double getByDate(Date date){ return getByDate(date.getTime()); }
DoubleTimeSeries implements Iterable<DoubleTimeSeries.Tuple> { public double getByDate(Date date){ return getByDate(date.getTime()); } }
DoubleTimeSeries implements Iterable<DoubleTimeSeries.Tuple> { public double getByDate(Date date){ return getByDate(date.getTime()); }  }
DoubleTimeSeries implements Iterable<DoubleTimeSeries.Tuple> { public double getByDate(Date date){ return getByDate(date.getTime()); }  void add(Date date, double data); void add(long date, double data); int count(); double getByIdx(int idx); double getByDate(Date date); double getByDate(long datetime); double ago(int ago); long [] index(); long firstDateTime(); long lastDateTime(); int firstIndex(); int lastIndex(); double first(); double last(); Iterator<Tuple> iterator(); @Override boolean equals(Object o); @Override int hashCode(); List<Long> getDatetimeSeries(); void setDatetimeSeries(List<Long> datetimeSeries); Map<Long, Integer> getIndexMap(); void setIndexMap(Map<Long, Integer> indexMap); List<Double> getDataSeries(); void setDataSeries(List<Double> dataSeries); int getCurrIdx(); void setCurrIdx(int currIdx); long getCurrTime(); void setCurrTime(long currTime); }
DoubleTimeSeries implements Iterable<DoubleTimeSeries.Tuple> { public double getByDate(Date date){ return getByDate(date.getTime()); }  void add(Date date, double data); void add(long date, double data); int count(); double getByIdx(int idx); double getByDate(Date date); double getByDate(long datetime); double ago(int ago); long [] index(); long firstDateTime(); long lastDateTime(); int firstIndex(); int lastIndex(); double first(); double last(); Iterator<Tuple> iterator(); @Override boolean equals(Object o); @Override int hashCode(); List<Long> getDatetimeSeries(); void setDatetimeSeries(List<Long> datetimeSeries); Map<Long, Integer> getIndexMap(); void setIndexMap(Map<Long, Integer> indexMap); List<Double> getDataSeries(); void setDataSeries(List<Double> dataSeries); int getCurrIdx(); void setCurrIdx(int currIdx); long getCurrTime(); void setCurrTime(long currTime);  }