Package | Description |
---|---|
java.time |
The main API for dates, times, instants, and durations.
|
java.time.chrono |
Generic API for calendar systems other than the default ISO.
|
java.time.temporal |
Access to date and time using fields and units, and date time adjusters.
|
Modifier and Type | Method and Description |
---|---|
ValueRange |
Year.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
MonthDay.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
YearMonth.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
DayOfWeek.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
Month.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
OffsetTime.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
LocalDateTime.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
LocalDate.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
ZonedDateTime.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
OffsetDateTime.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
ZoneOffset.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
Instant.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
LocalTime.range(TemporalField field)
Gets the range of valid values for the specified field.
|
Modifier and Type | Method and Description |
---|---|
ValueRange |
ThaiBuddhistChronology.range(ChronoField field) |
ValueRange |
JapaneseChronology.range(ChronoField field) |
ValueRange |
HijrahChronology.range(ChronoField field) |
ValueRange |
MinguoChronology.range(ChronoField field) |
ValueRange |
IsoChronology.range(ChronoField field) |
ValueRange |
Chronology.range(ChronoField field)
Gets the range of valid values for the specified field.
|
ValueRange |
ThaiBuddhistDate.range(TemporalField field) |
ValueRange |
JapaneseEra.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
JapaneseDate.range(TemporalField field) |
ValueRange |
HijrahEra.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
HijrahDate.range(TemporalField field) |
ValueRange |
MinguoDate.range(TemporalField field) |
default ValueRange |
Era.range(TemporalField field)
Gets the range of valid values for the specified field.
|
default ValueRange |
ChronoZonedDateTime.range(TemporalField field) |
Modifier and Type | Method and Description |
---|---|
static ValueRange |
ValueRange.of(long min,
long max)
Obtains a fixed value range.
|
static ValueRange |
ValueRange.of(long min,
long maxSmallest,
long maxLargest)
Obtains a variable value range.
|
static ValueRange |
ValueRange.of(long minSmallest,
long minLargest,
long maxSmallest,
long maxLargest)
Obtains a fully variable value range.
|
ValueRange |
TemporalField.range()
Gets the range of valid values for the field.
|
ValueRange |
ChronoField.range()
Gets the range of valid values for the field.
|
default ValueRange |
TemporalAccessor.range(TemporalField field)
Gets the range of valid values for the specified field.
|
ValueRange |
TemporalField.rangeRefinedBy(TemporalAccessor temporal)
Get the range of valid values for this field using the temporal object to
refine the result.
|
ValueRange |
ChronoField.rangeRefinedBy(TemporalAccessor temporal) |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.