Searched refs:rangeUnit (Results 1 – 4 of 4) sorted by relevance
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | WeekFields.java | 741 private final TemporalUnit rangeUnit; field in WeekFields.ComputedDayOfField 744 …ld(String name, WeekFields weekDef, TemporalUnit baseUnit, TemporalUnit rangeUnit, ValueRange rang… in ComputedDayOfField() argument 748 this.rangeUnit = rangeUnit; in ComputedDayOfField() 759 if (rangeUnit == WEEKS) { // day-of-week in getFrom() 761 } else if (rangeUnit == MONTHS) { // week-of-month in getFrom() 763 } else if (rangeUnit == YEARS) { // week-of-year in getFrom() 765 } else if (rangeUnit == WEEK_BASED_YEARS) { in getFrom() 767 } else if (rangeUnit == FOREVER) { in getFrom() 770 … throw new IllegalStateException("unreachable, rangeUnit: " + rangeUnit + ", this: " + this); in getFrom() 901 if (rangeUnit == FOREVER) { // replace year of WeekBasedYear in adjustInto() [all …]
|
D | JulianFields.java | 223 private final transient TemporalUnit rangeUnit; field in JulianFields.Field 227 private Field(String name, TemporalUnit baseUnit, TemporalUnit rangeUnit, long offset) { in Field() argument 230 this.rangeUnit = rangeUnit; in Field() 243 return rangeUnit; in getRangeUnit()
|
D | ChronoField.java | 594 private final TemporalUnit rangeUnit; field in ChronoField 598 …private ChronoField(String name, TemporalUnit baseUnit, TemporalUnit rangeUnit, ValueRange range) { in ChronoField() argument 601 this.rangeUnit = rangeUnit; in ChronoField() 606 private ChronoField(String name, TemporalUnit baseUnit, TemporalUnit rangeUnit, in ChronoField() argument 610 this.rangeUnit = rangeUnit; in ChronoField() 664 return rangeUnit; in getRangeUnit()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 146 public void test_getBaseUnit(ChronoField field, ChronoUnit baseUnit, ChronoUnit rangeUnit) { in test_getBaseUnit() argument 148 assertEquals(field.getRangeUnit(), rangeUnit); in test_getBaseUnit() local
|