Searched refs:rangeUnit (Results 1 – 4 of 4) sorted by relevance
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | WeekFields.java | 767 private final TemporalUnit rangeUnit; field in WeekFields.ComputedDayOfField 770 …ld(String name, WeekFields weekDef, TemporalUnit baseUnit, TemporalUnit rangeUnit, ValueRange rang… in ComputedDayOfField() argument 774 this.rangeUnit = rangeUnit; in ComputedDayOfField() 785 if (rangeUnit == WEEKS) { // day-of-week in getFrom() 787 } else if (rangeUnit == MONTHS) { // week-of-month in getFrom() 789 } else if (rangeUnit == YEARS) { // week-of-year in getFrom() 791 } else if (rangeUnit == WEEK_BASED_YEARS) { in getFrom() 793 } else if (rangeUnit == FOREVER) { in getFrom() 796 … throw new IllegalStateException("unreachable, rangeUnit: " + rangeUnit + ", this: " + this); in getFrom() 927 if (rangeUnit == FOREVER) { // replace year of WeekBasedYear in adjustInto() [all …]
|
D | JulianFields.java | 227 private final transient TemporalUnit rangeUnit; field in JulianFields.Field 231 private Field(String name, TemporalUnit baseUnit, TemporalUnit rangeUnit, long offset) { in Field() argument 234 this.rangeUnit = rangeUnit; in Field() 247 return rangeUnit; in getRangeUnit()
|
D | ChronoField.java | 617 private final TemporalUnit rangeUnit; field in ChronoField 621 …private ChronoField(String name, TemporalUnit baseUnit, TemporalUnit rangeUnit, ValueRange range) { in ChronoField() argument 624 this.rangeUnit = rangeUnit; in ChronoField() 629 private ChronoField(String name, TemporalUnit baseUnit, TemporalUnit rangeUnit, in ChronoField() argument 633 this.rangeUnit = rangeUnit; in ChronoField() 697 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
|