Searched refs:getUnits (Results 1 - 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/java/time/temporal/
H A DTemporalAmount.java78 * {@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 DChronoPeriod.java153 List<TemporalUnit> getUnits(); method in interface:ChronoPeriod
173 for (TemporalUnit unit : getUnits()) {
187 for (TemporalUnit unit : getUnits()) {
H A DChronoPeriodImpl.java154 public List<TemporalUnit> getUnits() { method in class:ChronoPeriodImpl
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DMockSimplePeriod.java126 public List<TemporalUnit> getUnits() { method in class:MockSimplePeriod
H A DTCKPeriod.java176 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 DTCKDuration.java449 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 DTCKChronoPeriod.java135 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 DTCKChronoLocalDate.java366 public List<TemporalUnit> getUnits() { method in class:TCKChronoLocalDate.FixedAdjuster
H A DTCKChronoLocalDateTime.java386 public List<TemporalUnit> getUnits() { method in class:TCKChronoLocalDateTime.FixedAdjuster
H A DTCKChronoZonedDateTime.java387 public List<TemporalUnit> getUnits() { method in class:TCKChronoZonedDateTime.FixedAdjuster
/libcore/ojluni/src/test/java/time/test/java/time/
H A DMockSimplePeriod.java126 public List<TemporalUnit> getUnits() { method in class:MockSimplePeriod
/libcore/ojluni/src/main/java/java/time/
H A DPeriod.java267 for (TemporalUnit unit : amount.getUnits()) {
451 public List<TemporalUnit> getUnits() { method in class:Period
H A DDuration.java329 for (TemporalUnit unit : amount.getUnits()) {
548 public List<TemporalUnit> getUnits() { method in class:Duration

Completed in 637 milliseconds