@Test public void testToArray() { TimestampSet set = new TimestampSet(); set.add(0.0); set.add(1.0); set.remove(0.0); Assert.assertEquals(set.toArray(), new Double[] { 1.0 }); }
@Override public Double[] toArray() { Double[] res = new Double[size]; for (int i = 0; i < size; i++) { res[i] = array[i]; } return res; }
TimestampSet implements TimeSet<Double> { @Override public Double[] toArray() { Double[] res = new Double[size]; for (int i = 0; i < size; i++) { res[i] = array[i]; } return res; } }
TimestampSet implements TimeSet<Double> { @Override public Double[] toArray() { Double[] res = new Double[size]; for (int i = 0; i < size; i++) { res[i] = array[i]; } return res; } TimestampSet();  TimestampSet(int capacity);  TimestampSet(double[] arr); }
TimestampSet implements TimeSet<Double> { @Override public Double[] toArray() { Double[] res = new Double[size]; for (int i = 0; i < size; i++) { res[i] = array[i]; } return res; } TimestampSet();  TimestampSet(int capacity);  TimestampSet(double[] arr); @Override boolean add(Double timestamp); @Override boolean remove(Double timestamp); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Double timestamp); @Override Double[] toArray(); @Override double[] toPrimitiveArray(); @Override void clear(); @Override int hashCode(); @Override boolean equals(Object obj); String toString(TimeFormat timeFormat, DateTimeZone timeZone); String toString(TimeFormat timeFormat); @Override String toString(); }
TimestampSet implements TimeSet<Double> { @Override public Double[] toArray() { Double[] res = new Double[size]; for (int i = 0; i < size; i++) { res[i] = array[i]; } return res; } TimestampSet();  TimestampSet(int capacity);  TimestampSet(double[] arr); @Override boolean add(Double timestamp); @Override boolean remove(Double timestamp); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Double timestamp); @Override Double[] toArray(); @Override double[] toPrimitiveArray(); @Override void clear(); @Override int hashCode(); @Override boolean equals(Object obj); String toString(TimeFormat timeFormat, DateTimeZone timeZone); String toString(TimeFormat timeFormat); @Override String toString();  }