/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | HijrahEra.java | 127 * Gets the range of valid values for the specified field. 129 * The range object expresses the minimum and maximum valid values for a field. 130 * This era is used to enhance the accuracy of the returned range. 131 * If it is not possible to return the range, because the field is not supported 135 * The {@code ERA} field returns the range. 141 * Whether the range can be obtained is determined by the field. 143 * The {@code ERA} field returns a range for the one valid Hijrah era. 145 * @param field the field to query the range for, not null 146 * @return the range of valid values for the field, not null 147 * @throws DateTimeException if the range fo 151 public ValueRange range(TemporalField field) { method in class:HijrahEra [all...] |
H A D | Era.java | 129 * If false, then calling the {@link #range(TemporalField) range} and 153 * Gets the range of valid values for the specified field. 155 * The range object expresses the minimum and maximum valid values for a field. 156 * This era is used to enhance the accuracy of the returned range. 157 * If it is not possible to return the range, because the field is not supported 161 * The {@code ERA} field returns the range. 167 * Whether the range can be obtained is determined by the field. 169 * The default implementation must return a range for {@code ERA} from 172 * @param field the field to query the range fo 178 default ValueRange range(TemporalField field) { method in interface:Era [all...] |
H A D | JapaneseEra.java | 306 * Gets the range of valid values for the specified field. 308 * The range object expresses the minimum and maximum valid values for a field. 309 * This era is used to enhance the accuracy of the returned range. 310 * If it is not possible to return the range, because the field is not supported 314 * The {@code ERA} field returns the range. 320 * Whether the range can be obtained is determined by the field. 322 * The range of valid Japanese eras can change over time due to the nature 325 * @param field the field to query the range for, not null 326 * @return the range of valid values for the field, not null 327 * @throws DateTimeException if the range fo 331 public ValueRange range(TemporalField field) { method in class:JapaneseEra [all...] |
H A D | MinguoChronology.java | 284 * well-defined result for years in the supported range. 286 * @param prolepticYear the proleptic-year to check, not validated for range 314 public ValueRange range(ChronoField field) { method in class:MinguoChronology 317 ValueRange range = PROLEPTIC_MONTH.range(); 318 return ValueRange.of(range.getMinimum() - YEARS_DIFFERENCE * 12L, range.getMaximum() - YEARS_DIFFERENCE * 12L); 321 ValueRange range = YEAR.range(); 322 return ValueRange.of(1, range [all...] |
H A D | ChronoLocalDateTimeImpl.java | 248 public ValueRange range(TemporalField field) { method in class:ChronoLocalDateTimeImpl 251 return (f.isTimeBased() ? time.range(field) : date.range(field)); 262 return range(field).checkValidIntValue(getLong(field), field);
|
H A D | ChronoZonedDateTime.java | 179 default ValueRange range(TemporalField field) { method in interface:ChronoZonedDateTime 182 return field.range(); 184 return toLocalDateTime().range(field); 352 * @throws DateTimeException if the result exceeds the supported date range 360 * If false, then calling the {@link #range(TemporalField) range},
|
H A D | Chronology.java | 191 * The {@link Locale} class provide access to a range of information useful 526 * @throws DateTimeException if the result exceeds the supported range 543 * @param prolepticYear the proleptic-year to check, not validated for range 600 * Gets the range of valid values for the specified field. 603 * This method returns an object that describes the valid range for that value. 607 * could be values within the range that are invalid for the field. 611 * @param field the field to get the range for, not null 612 * @return the range of valid values for the field, not null 613 * @throws DateTimeException if the range for the field cannot be obtained 615 ValueRange range(ChronoFiel method in interface:Chronology [all...] |
H A D | IsoChronology.java | 302 * @throws DateTimeException if the result exceeds the supported range 424 * range is not validated, in smart and strict mode it is. The {@code ERA} is 425 * validated for range in all three modes. If only the {@code YEAR_OF_ERA} is 565 public ValueRange range(ChronoField field) { method in class:IsoChronology 566 return field.range();
|
H A D | JapaneseChronology.java | 340 * well-defined result for years in the supported range. 342 * @param prolepticYear the proleptic-year to check, not validated for range 400 public ValueRange range(ChronoField field) { method in class:JapaneseChronology 427 return field.range(); 443 era = eraOf(range(ERA).checkValidIntValue(eraLong, ERA)); // always validated 448 yoe = range(YEAR_OF_ERA).checkValidIntValue(yoeLong, YEAR_OF_ERA); // always validated 481 int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR); 482 int dom = range(DAY_OF_MONTH).checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); 513 int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR);
|
H A D | MinguoDate.java | 172 * @throws DateTimeException if the value of any field is out of range, 253 public ValueRange range(TemporalField field) { method in class:MinguoDate 261 return isoDate.range(field); 263 ValueRange range = YEAR.range(); 264 long max = (getProlepticYear() <= 0 ? -range.getMinimum() + 1 + YEARS_DIFFERENCE : range.getMaximum() - YEARS_DIFFERENCE); 268 return getChronology().range(f); 313 getChronology().range(f).checkValidValue(newValue, f); 318 int nvalue = getChronology().range( [all...] |
/libcore/ojluni/src/main/java/java/time/temporal/ |
H A D | TemporalAccessor.java | 109 * If false, then calling the {@link #range(TemporalField) range} and {@link #get(TemporalField) get} 129 * Gets the range of valid values for the specified field. 132 * This method returns an object that describes the valid range for that value. 133 * The value of this temporal object is used to enhance the accuracy of the returned range. 134 * If the date-time cannot return the range, because the field is unsupported or for 139 * could be values within the range that are invalid for the field. 143 * If the field is supported, then the range of the field must be returned. 157 * return field.range(); 164 * @param field the field to query the range fo 169 default ValueRange range(TemporalField field) { method in interface:TemporalAccessor [all...] |
H A D | TemporalField.java | 115 * The unit of the field is the period that varies within the range. 124 * Gets the range that the field is bound by. 126 * The range of the field is the period that the field varies within. 127 * For example, in the field 'MonthOfYear', the range is 'Years'. 130 * The range is never null. For example, the 'Year' field is shorthand for 131 * 'YearOfForever'. It therefore has a unit of 'Years' and a range of 'Forever'. 133 * @return the unit defining the range of the field, not null 138 * Gets the range of valid values for the field. 141 * This method returns an object that describes the valid range for that value. 146 * could be values within the range tha 150 ValueRange range(); method in interface:TemporalField [all...] |
H A D | JulianFields.java | 115 * the Julian Day value is validated against the range of valid values. 163 * the Modified Julian Day value is validated against the range of valid values. 199 * the Rata Die value is validated against the range of valid values. 224 private final transient ValueRange range; field in class:JulianFields.Field 231 this.range = ValueRange.of(-365243219162L + offset, 365241780471L + offset); 257 public ValueRange range() { method in class:JulianFields.Field 258 return range; 272 return range(); 283 if (range().isValidValue(newValue) == false) { 298 range() [all...] |
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
H A D | MockFieldValue.java | 87 public ValueRange range(TemporalField field) { method in class:MockFieldValue 90 return field.range();
|
H A D | MockFieldNoValue.java | 90 public ValueRange range() { method in class:MockFieldNoValue
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
H A D | LocaleMatcher.java | 86 String range = lr.getRange(); 87 if (range.startsWith("*-") 88 || range.indexOf("-*") != -1) { // Extended range 92 if (range.charAt(0) == '*') { 93 range = "*"; 95 range = range.replaceAll("-[*]", ""); 97 list.add(new LanguageRange(range, lr.getWeight())); 99 throw new IllegalArgumentException("An extended range \"" 340 replaceFirstSubStringMatch(String range, String substr, String replacement) argument 352 getEquivalentsForLanguage(String range) argument 387 getEquivalentForRegionAndVariant(String range) argument [all...] |
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
H A D | ChronologyTest.java | 135 public ValueRange range(ChronoField field) { method in class:ChronologyTest.DummyChronology
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | DayOfWeek.java | 235 * If false, then calling the {@link #range(TemporalField) range} and 259 * Gets the range of valid values for the specified field. 261 * The range object expresses the minimum and maximum valid values for a field. 262 * This day-of-week is used to enhance the accuracy of the returned range. 263 * If it is not possible to return the range, because the field is not supported 267 * range of the day-of-week, from 1 to 7, will be returned. 273 * Whether the range can be obtained is determined by the field. 275 * @param field the field to query the range for, not null 276 * @return the range o 281 public ValueRange range(TemporalField field) { method in class:DayOfWeek [all...] |
H A D | Month.java | 262 * If false, then calling the {@link #range(TemporalField) range} and 286 * Gets the range of valid values for the specified field. 288 * The range object expresses the minimum and maximum valid values for a field. 289 * This month is used to enhance the accuracy of the returned range. 290 * If it is not possible to return the range, because the field is not supported 294 * range of the month-of-year, from 1 to 12, will be returned. 300 * Whether the range can be obtained is determined by the field. 302 * @param field the field to query the range for, not null 303 * @return the range o 308 public ValueRange range(TemporalField field) { method in class:Month [all...] |
H A D | MonthDay.java | 208 * @throws DateTimeException if the value of any field is out of range, 234 * @throws DateTimeException if the value of any field is out of range, 323 * If false, then calling the {@link #range(TemporalField) range} and 351 * Gets the range of valid values for the specified field. 353 * The range object expresses the minimum and maximum valid values for a field. 354 * This month-day is used to enhance the accuracy of the returned range. 355 * If it is not possible to return the range, because the field is not supported 360 * appropriate range instances. 366 * Whether the range ca 374 public ValueRange range(TemporalField field) { method in class:MonthDay [all...] |
H A D | ZoneOffset.java | 106 * To prevent any problems with that range being extended, yet still provide 107 * validation, the range of offsets is restricted to -18:00 to 18:00 inclusive. 189 * The maximum supported range is from +18:00 to -18:00 inclusive. 274 * @throws DateTimeException if the offset is not in the required range 291 * @throws DateTimeException if the offset is not in the required range 308 * @throws DateTimeException if the offset is not in the required range 354 * @throws DateTimeException if the offset is not in the required range 358 throw new DateTimeException("Zone offset hours not in valid range: value " + hours + 359 " is not in the range -18 to 18"); 373 throw new DateTimeException("Zone offset minutes not in valid range 554 public ValueRange range(TemporalField field) { method in class:ZoneOffset [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | EnumSet.java | 346 * range defined by the two specified endpoints. The returned set will 351 * @param from the first element in the range 352 * @param to the last element in the range 356 * range defined by the two specified endpoints 358 public static <E extends Enum<E>> EnumSet<E> range(E from, E to) { method in class:EnumSet 367 * Adds the specified range to this enum set, which is empty prior
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
H A D | CopticChronology.java | 201 * well-defined result for years in the supported range. 203 * @param prolepticYear the proleptic-year to check, not validated for range 231 public ValueRange range(ChronoField field) { method in class:CopticChronology 240 return field.range();
|
H A D | CopticDate.java | 150 ValueRange range; 152 range = CopticChronology.INSTANCE.isLeapYear(prolepticYear) ? CopticChronology.DOM_RANGE_LEAP : CopticChronology.DOM_RANGE_NONLEAP; 154 range = CopticChronology.DOM_RANGE; 156 range.checkValidValue(dayOfMonth, DAY_OF_MONTH); 191 public ValueRange range(TemporalField field) { method in class:CopticDate 203 return getChronology().range(f);
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | LocaleLanguageRangeTest.java | 373 * Tests parsing a Locale range matching an entry from 383 * Tests parsing a Locale range matching an entry from 392 * Tests parsing a Locale range matching an entry from 409 * Tests parsing a Locale range matching entries from both 437 private void assertRangeMalformed(String range) { argument 439 new LanguageRange(range); 440 fail("Range should be recognized as malformed: " + range); 444 assertEquals("range=" + range.toLowerCase(), expected.getMessage());
|