@Test public void testTemporalAmountGetUnits() { assertEquals(List.of(YEARS, MONTHS, DAYS, SECONDS, NANOS), PeriodAndDuration.ZERO.getUnits()); }
@Override public List<TemporalUnit> getUnits() { return UNITS; }
PeriodAndDuration implements TemporalAmount { @Override public List<TemporalUnit> getUnits() { return UNITS; } }
PeriodAndDuration implements TemporalAmount { @Override public List<TemporalUnit> getUnits() { return UNITS; } PeriodAndDuration(Period period, Duration duration);  PeriodAndDuration(Period period);  PeriodAndDuration(Duration duration); }
PeriodAndDuration implements TemporalAmount { @Override public List<TemporalUnit> getUnits() { return UNITS; } PeriodAndDuration(Period period, Duration duration);  PeriodAndDuration(Period period);  PeriodAndDuration(Duration duration); @Override List<TemporalUnit> getUnits(); @Override long get(TemporalUnit unit); @Override Temporal addTo(Temporal temporal); @Override Temporal subtractFrom(Temporal temporal); static PeriodAndDuration parse(String text); @Override String toString(); }
PeriodAndDuration implements TemporalAmount { @Override public List<TemporalUnit> getUnits() { return UNITS; } PeriodAndDuration(Period period, Duration duration);  PeriodAndDuration(Period period);  PeriodAndDuration(Duration duration); @Override List<TemporalUnit> getUnits(); @Override long get(TemporalUnit unit); @Override Temporal addTo(Temporal temporal); @Override Temporal subtractFrom(Temporal temporal); static PeriodAndDuration parse(String text); @Override String toString(); static final PeriodAndDuration ZERO; final Period period; final Duration duration; }