Searched refs:rangeUnit (Results 1 – 4 of 4) sorted by relevance
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | WeekFields.java | 742 private final TemporalUnit rangeUnit; field in WeekFields.ComputedDayOfField 745 …ld(String name, WeekFields weekDef, TemporalUnit baseUnit, TemporalUnit rangeUnit, ValueRange rang… in ComputedDayOfField() argument 749 this.rangeUnit = rangeUnit; in ComputedDayOfField() 760 if (rangeUnit == WEEKS) { // day-of-week in getFrom() 762 } else if (rangeUnit == MONTHS) { // week-of-month in getFrom() 764 } else if (rangeUnit == YEARS) { // week-of-year in getFrom() 766 } else if (rangeUnit == WEEK_BASED_YEARS) { in getFrom() 768 } else if (rangeUnit == FOREVER) { in getFrom() 771 … throw new IllegalStateException("unreachable, rangeUnit: " + rangeUnit + ", this: " + this); in getFrom() 902 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
|