ImmutableZonedDateTimeDoubleTimeSeries extends AbstractZonedDateTimeDoubleTimeSeries implements ZonedDateTimeDoubleTimeSeries, Serializable { public static ZonedDateTimeDoubleTimeSeriesBuilder builder(ZoneId zone) { return new ImmutableZonedDateTimeDoubleTimeSeriesBuilder(zone); } ImmutableZonedDateTimeDoubleTimeSeries(long[] instants, double[] values, ZoneId zone); static ZonedDateTimeDoubleTimeSeriesBuilder builder(ZoneId zone); static ImmutableZonedDateTimeDoubleTimeSeries ofEmpty(ZoneId zone); static ImmutableZonedDateTimeDoubleTimeSeries ofEmptyUTC(); static ImmutableZonedDateTimeDoubleTimeSeries of(ZonedDateTime instant, double value); static ImmutableZonedDateTimeDoubleTimeSeries of(ZonedDateTime[] instants, Double[] values, ZoneId zone); static ImmutableZonedDateTimeDoubleTimeSeries ofUTC(ZonedDateTime[] instants, Double[] values); static ImmutableZonedDateTimeDoubleTimeSeries of(ZonedDateTime[] instants, double[] values, ZoneId zone); static ImmutableZonedDateTimeDoubleTimeSeries ofUTC(ZonedDateTime[] instants, double[] values); static ImmutableZonedDateTimeDoubleTimeSeries of(long[] instants, double[] values, ZoneId zone); static ImmutableZonedDateTimeDoubleTimeSeries ofUTC(long[] instants, double[] values); static ImmutableZonedDateTimeDoubleTimeSeries of(Collection<ZonedDateTime> instants, Collection<Double> values, ZoneId zone); static ImmutableZonedDateTimeDoubleTimeSeries ofUTC(Collection<ZonedDateTime> instants, Collection<Double> values); static ImmutableZonedDateTimeDoubleTimeSeries of(PreciseDoubleTimeSeries<?> timeSeries, ZoneId zone); static ImmutableZonedDateTimeDoubleTimeSeries from(DoubleTimeSeries<ZonedDateTime> timeSeries, ZoneId zone); @Override ZoneId getZone(); @Override ZonedDateTimeDoubleTimeSeries withZone(ZoneId zone); @Override int size(); @Override boolean containsTime(long instant); @Override Double getValue(long instant); @Override long getTimeAtIndexFast(int index); @Override double getValueAtIndexFast(int index); @Override long getEarliestTimeFast(); @Override double getEarliestValueFast(); @Override long getLatestTimeFast(); @Override double getLatestValueFast(); @Override long[] timesArrayFast(); @Override double[] valuesArrayFast(); @Override ZonedDateTimeDoubleTimeSeries subSeriesFast(long startTime, boolean includeStart, long endTime, boolean includeEnd); @Override ZonedDateTimeDoubleTimeSeries head(int numItems); @Override ZonedDateTimeDoubleTimeSeries tail(int numItems); @Override ImmutableZonedDateTimeDoubleTimeSeries newInstance(ZonedDateTime[] instants, Double[] values); @Override ZonedDateTimeDoubleTimeSeries operate(UnaryOperator operator); @Override ZonedDateTimeDoubleTimeSeries operate(double other, BinaryOperator operator); @Override ZonedDateTimeDoubleTimeSeriesBuilder toBuilder();  }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_builder_putAll_ZonedDateTime_mismatchedArrays() { ZonedDateTimeDoubleTimeSeriesBuilder bld = ImmutableZonedDateTimeDoubleTimeSeries.builder(ZoneOffset.UTC); ZonedDateTime[] inDates = new ZonedDateTime[] {ZDT_2222, ZDT_3333}; double[] inValues = new double[] {2.0, 3.0, 1.0}; bld.putAll(inDates, inValues); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_builder_putAll_long_mismatchedArrays() { ZonedDateTimeDoubleTimeSeriesBuilder bld = ImmutableZonedDateTimeDoubleTimeSeries.builder(ZoneOffset.UTC); long[] inDates = new long[] {2222_000_000_000L, 3333_000_000_000L}; double[] inValues = new double[] {2.0, 3.0, 1.0}; bld.putAll(inDates, inValues); }