ImmutableZonedDateTimeObjectTimeSeries extends AbstractPreciseObjectTimeSeries<ZonedDateTime, V> implements ZonedDateTimeObjectTimeSeries<V>, Serializable { public static <V> ZonedDateTimeObjectTimeSeriesBuilder<V> builder(ZoneId zone) { return new ImmutableZonedDateTimeObjectTimeSeriesBuilder<V>(zone); } ImmutableZonedDateTimeObjectTimeSeries(long[] instants, V[] values, ZoneId zone); static ZonedDateTimeObjectTimeSeriesBuilder<V> builder(ZoneId zone); @SuppressWarnings("unchecked") static ImmutableZonedDateTimeObjectTimeSeries<V> ofEmpty(ZoneId zone); static ImmutableZonedDateTimeObjectTimeSeries<V> of(ZonedDateTime instant, V value); static ImmutableZonedDateTimeObjectTimeSeries<V> of(ZonedDateTime[] instants, V[] values, ZoneId zone); static ImmutableZonedDateTimeObjectTimeSeries<V> of(long[] instants, V[] values, ZoneId zone); static ImmutableZonedDateTimeObjectTimeSeries<V> of(Collection<ZonedDateTime> instants, Collection<V> values, ZoneId zone); @SuppressWarnings("unchecked") static ImmutableZonedDateTimeObjectTimeSeries<V> of(PreciseObjectTimeSeries<?, V> timeSeries, ZoneId zone); static ImmutableZonedDateTimeObjectTimeSeries<V> from(ObjectTimeSeries<ZonedDateTime, V> timeSeries, ZoneId zone); @Override ZoneId getZone(); @Override ZonedDateTimeObjectTimeSeries<V> withZone(ZoneId zone); @Override int size(); @Override boolean containsTime(long instant); @Override V getValue(long instant); @Override long getTimeAtIndexFast(int index); @Override V getValueAtIndex(int index); @Override long getEarliestTimeFast(); @Override V getEarliestValue(); @Override long getLatestTimeFast(); @Override V getLatestValue(); @Override long[] timesArrayFast(); @Override V[] valuesArray(); @Override ZonedDateTimeObjectEntryIterator<V> iterator(); @Override ZonedDateTimeObjectTimeSeries<V> subSeries(ZonedDateTime startZonedDateTime, ZonedDateTime endZonedDateTime); @Override ZonedDateTimeObjectTimeSeries<V> subSeries(ZonedDateTime startZonedDateTime, boolean includeStart, ZonedDateTime endZonedDateTime, boolean includeEnd); @Override ZonedDateTimeObjectTimeSeries<V> subSeriesFast(long startZonedDateTime, long endZonedDateTime); @Override ZonedDateTimeObjectTimeSeries<V> subSeriesFast(long startZonedDateTime, boolean includeStart, long endZonedDateTime, boolean includeEnd); @Override ZonedDateTimeObjectTimeSeries<V> head(int numItems); @Override ZonedDateTimeObjectTimeSeries<V> tail(int numItems); @Override @SuppressWarnings("unchecked") ZonedDateTimeObjectTimeSeries<V> lag(int days); @Override ImmutableZonedDateTimeObjectTimeSeries<V> newInstance(ZonedDateTime[] dates, V[] values); @Override ZonedDateTimeObjectTimeSeries<V> operate(UnaryOperator<V> operator); @Override ZonedDateTimeObjectTimeSeries<V> operate(V other, BinaryOperator<V> operator); @Override @SuppressWarnings("unchecked") ZonedDateTimeObjectTimeSeries<V> operate(PreciseObjectTimeSeries<?, V> other, BinaryOperator<V> operator); @SuppressWarnings("unchecked") @Override ZonedDateTimeObjectTimeSeries<V> unionOperate(PreciseObjectTimeSeries<?, V> other, BinaryOperator<V> operator); @Override ZonedDateTimeObjectTimeSeries<V> intersectionFirstValue(PreciseObjectTimeSeries<?, V> other); @Override ZonedDateTimeObjectTimeSeries<V> intersectionSecondValue(PreciseObjectTimeSeries<?, V> other); @Override ZonedDateTimeObjectTimeSeries<V> noIntersectionOperation(PreciseObjectTimeSeries<?, V> other); @Override ZonedDateTimeObjectTimeSeriesBuilder<V> toBuilder(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_builder_putAll_ZonedDateTime_mismatchedArrays() { ZonedDateTimeObjectTimeSeriesBuilder<Float> bld = ImmutableZonedDateTimeObjectTimeSeries.builder(ZoneOffset.UTC); ZonedDateTime[] inDates = new ZonedDateTime[] {ZDT_2222, ZDT_3333}; Float[] inValues = new Float[] {2.0f, 3.0f, 1.0f}; bld.putAll(inDates, inValues); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_builder_putAll_long_mismatchedArrays() { ZonedDateTimeObjectTimeSeriesBuilder<Float> bld = ImmutableZonedDateTimeObjectTimeSeries.builder(ZoneOffset.UTC); long[] inDates = new long[] {2222_000_000_000L, 3333_000_000_000L}; Float[] inValues = new Float[] {2.0f, 3.0f, 1.0f}; bld.putAll(inDates, inValues); }