ImmutableZonedDateTimeDoubleTimeSeries extends AbstractZonedDateTimeDoubleTimeSeries implements ZonedDateTimeDoubleTimeSeries, Serializable { public static ImmutableZonedDateTimeDoubleTimeSeries of(ZonedDateTime instant, double value) { Objects.requireNonNull(instant, "instant"); long[] timesArray = new long[] {ZonedDateTimeToLongConverter.convertToLong(instant)}; double[] valuesArray = new double[] {value}; return new ImmutableZonedDateTimeDoubleTimeSeries(timesArray, valuesArray, instant.getZone()); } 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 = NullPointerException.class) public void test_of_ZonedDateTime_double_null() { ImmutableZonedDateTimeDoubleTimeSeries.of((ZonedDateTime) null, 2.0); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_ZonedDateTimeArray_DoubleArray_wrongOrder() { ZonedDateTime[] inDates = new ZonedDateTime[] {ZDT_2222, ZDT_3333, ZDT_1111}; Double[] inValues = new Double[] {2.0, 3.0, 1.0}; ImmutableZonedDateTimeDoubleTimeSeries.of(inDates, inValues, null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_ZonedDateTimeArray_DoubleArray_mismatchedArrays() { ZonedDateTime[] inDates = new ZonedDateTime[] {ZDT_2222}; Double[] inValues = new Double[] {2.0, 3.0}; ImmutableZonedDateTimeDoubleTimeSeries.of(inDates, inValues, null); }
@Test(expectedExceptions = NullPointerException.class) public void test_of_ZonedDateTimeArray_DoubleArray_nullDates() { Double[] inValues = new Double[] {2.0, 3.0, 1.0}; ImmutableZonedDateTimeDoubleTimeSeries.of((ZonedDateTime[]) null, inValues, null); }
@Test(expectedExceptions = NullPointerException.class) public void test_of_ZonedDateTimeArray_DoubleArray_nullValues() { ZonedDateTime[] inDates = new ZonedDateTime[] {ZDT_2222, ZDT_3333, ZDT_1111}; ImmutableZonedDateTimeDoubleTimeSeries.of(inDates, (Double[]) null, null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_ZonedDateTimeArray_doubleArray_wrongOrder() { ZonedDateTime[] inDates = new ZonedDateTime[] {ZDT_2222, ZDT_3333, ZDT_1111}; double[] inValues = new double[] {2.0, 3.0, 1.0}; ImmutableZonedDateTimeDoubleTimeSeries.of(inDates, inValues, null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_ZonedDateTimeArray_doubleArray_mismatchedArrays() { ZonedDateTime[] inDates = new ZonedDateTime[] {ZDT_2222}; double[] inValues = new double[] {2.0, 3.0}; ImmutableZonedDateTimeDoubleTimeSeries.of(inDates, inValues, null); }
@Test(expectedExceptions = NullPointerException.class) public void test_of_ZonedDateTimeArray_doubleArray_nullDates() { double[] inValues = new double[] {2.0, 3.0, 1.0}; ImmutableZonedDateTimeDoubleTimeSeries.of((ZonedDateTime[]) null, inValues, null); }
@Test(expectedExceptions = NullPointerException.class) public void test_of_ZonedDateTimeArray_doubleArray_nullValues() { ZonedDateTime[] inDates = new ZonedDateTime[] {ZDT_2222, ZDT_3333, ZDT_1111}; ImmutableZonedDateTimeDoubleTimeSeries.of(inDates, (double[]) null, null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_longArray_doubleArray_wrongOrder() { long[] inDates = new long[] {2222_000_000_000L, 3333_000_000_000L, 1111_000_000_000L}; double[] inValues = new double[] {2.0, 3.0, 1.0}; ImmutableZonedDateTimeDoubleTimeSeries.of(inDates, inValues, ZoneOffset.UTC); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_longArray_doubleArray_mismatchedArrays() { long[] inDates = new long[] {2222_000_000_000L}; double[] inValues = new double[] {2.0, 3.0}; ImmutableZonedDateTimeDoubleTimeSeries.of(inDates, inValues, ZoneOffset.UTC); }
@Test(expectedExceptions = NullPointerException.class) public void test_of_longArray_doubleArray_nullDates() { double[] inValues = new double[] {2.0, 3.0, 1.0}; ImmutableZonedDateTimeDoubleTimeSeries.of((long[]) null, inValues, ZoneOffset.UTC); }
@Test(expectedExceptions = NullPointerException.class) public void test_of_longArray_doubleArray_nullValues() { long[] inDates = new long[] {2222_000_000_000L, 3333_000_000_000L}; ImmutableZonedDateTimeDoubleTimeSeries.of(inDates, (double[]) null, ZoneOffset.UTC); }