/libcore/ojluni/src/main/java/java/time/temporal/ |
H A D | TemporalAmount.java | 78 * {@code long}, exposed via {@link #getUnits()} and {@link #get(TemporalUnit)}. 103 * The units returned from {@link #getUnits()} uniquely define the 105 * for each unit listed in {@code getUnits}. 108 * Implementations may declare support for units not listed by {@link #getUnits()}. 122 * The list is a snapshot of the units at the time {@code getUnits} 134 List<TemporalUnit> getUnits(); method in interface:TemporalAmount
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | ChronoPeriod.java | 153 List<TemporalUnit> getUnits(); method in interface:ChronoPeriod 173 for (TemporalUnit unit : getUnits()) { 187 for (TemporalUnit unit : getUnits()) {
|
H A D | ChronoPeriodImpl.java | 154 public List<TemporalUnit> getUnits() { method in class:ChronoPeriodImpl
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | MockSimplePeriod.java | 126 public List<TemporalUnit> getUnits() { method in class:MockSimplePeriod
|
H A D | TCKPeriod.java | 176 public List<TemporalUnit> getUnits() { 202 public List<TemporalUnit> getUnits() { 229 public List<TemporalUnit> getUnits() { 655 public List<TemporalUnit> getUnits() { 800 public List<TemporalUnit> getUnits() { 1138 List<TemporalUnit> units = period.getUnits(); 1139 assertEquals(units.size(), 3, "Period.getUnits should return 3 units"); 1140 assertEquals(units.get(0), ChronoUnit.YEARS, "Period.getUnits contains ChronoUnit.YEARS"); 1141 assertEquals(units.get(1), ChronoUnit.MONTHS, "Period.getUnits contains ChronoUnit.MONTHS"); 1142 assertEquals(units.get(2), ChronoUnit.DAYS, "Period.getUnits contain [all...] |
H A D | TCKDuration.java | 449 public List<TemporalUnit> getUnits() { 477 public List<TemporalUnit> getUnits() { 2692 List<TemporalUnit> units = duration.getUnits(); 2693 assertEquals(units.size(), 2, "Period.getUnits length"); 2694 assertTrue(units.contains(ChronoUnit.SECONDS), "Period.getUnits contains ChronoUnit.SECONDS");
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
H A D | TCKChronoPeriod.java | 135 assertEquals(period.getUnits().size(), 3); 136 assertEquals(period.getUnits().get(0), YEARS); 137 assertEquals(period.getUnits().get(1), MONTHS); 138 assertEquals(period.getUnits().get(2), DAYS);
|
H A D | TCKChronoLocalDate.java | 366 public List<TemporalUnit> getUnits() { method in class:TCKChronoLocalDate.FixedAdjuster
|
H A D | TCKChronoLocalDateTime.java | 386 public List<TemporalUnit> getUnits() { method in class:TCKChronoLocalDateTime.FixedAdjuster
|
H A D | TCKChronoZonedDateTime.java | 387 public List<TemporalUnit> getUnits() { method in class:TCKChronoZonedDateTime.FixedAdjuster
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
H A D | MockSimplePeriod.java | 126 public List<TemporalUnit> getUnits() { method in class:MockSimplePeriod
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | Period.java | 267 for (TemporalUnit unit : amount.getUnits()) { 451 public List<TemporalUnit> getUnits() { method in class:Period
|
H A D | Duration.java | 329 for (TemporalUnit unit : amount.getUnits()) { 548 public List<TemporalUnit> getUnits() { method in class:Duration
|