Uses of Interface
java.time.temporal.TemporalQuery
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.format |
Provides classes to print and parse dates and times.
|
java.time.temporal |
Access to date and time using fields and units, and date time adjusters.
|
-
Uses of TemporalQuery in java.time
Methods in java.time with parameters of type TemporalQuery Modifier and Type Method Description <R> R
DayOfWeek. query(TemporalQuery<R> query)
Queries this day-of-week using the specified query.<R> R
Instant. query(TemporalQuery<R> query)
Queries this instant using the specified query.<R> R
LocalDate. query(TemporalQuery<R> query)
Queries this date using the specified query.<R> R
LocalDateTime. query(TemporalQuery<R> query)
Queries this date-time using the specified query.<R> R
LocalTime. query(TemporalQuery<R> query)
Queries this time using the specified query.<R> R
Month. query(TemporalQuery<R> query)
Queries this month-of-year using the specified query.<R> R
MonthDay. query(TemporalQuery<R> query)
Queries this month-day using the specified query.<R> R
OffsetDateTime. query(TemporalQuery<R> query)
Queries this date-time using the specified query.<R> R
OffsetTime. query(TemporalQuery<R> query)
Queries this time using the specified query.<R> R
Year. query(TemporalQuery<R> query)
Queries this year using the specified query.<R> R
YearMonth. query(TemporalQuery<R> query)
Queries this year-month using the specified query.<R> R
ZonedDateTime. query(TemporalQuery<R> query)
Queries this date-time using the specified query.<R> R
ZoneOffset. query(TemporalQuery<R> query)
Queries this offset using the specified query. -
Uses of TemporalQuery in java.time.chrono
Methods in java.time.chrono with parameters of type TemporalQuery Modifier and Type Method Description default <R> R
ChronoLocalDate. query(TemporalQuery<R> query)
Queries this date using the specified query.default <R> R
ChronoLocalDateTime. query(TemporalQuery<R> query)
Queries this date-time using the specified query.default <R> R
ChronoZonedDateTime. query(TemporalQuery<R> query)
Queries this date-time using the specified query.default <R> R
Era. query(TemporalQuery<R> query)
Queries this era using the specified query. -
Uses of TemporalQuery in java.time.format
Methods in java.time.format that return TemporalQuery Modifier and Type Method Description static TemporalQuery<Period>
DateTimeFormatter. parsedExcessDays()
A query that provides access to the excess days that were parsed.static TemporalQuery<Boolean>
DateTimeFormatter. parsedLeapSecond()
A query that provides access to whether a leap-second was parsed.Methods in java.time.format with parameters of type TemporalQuery Modifier and Type Method Description <T> T
DateTimeFormatter. parse(CharSequence text, TemporalQuery<T> query)
Fully parses the text producing an object of the specified type.TemporalAccessor
DateTimeFormatter. parseBest(CharSequence text, TemporalQuery<?>... queries)
Fully parses the text producing an object of one of the specified types.Format
DateTimeFormatter. toFormat(TemporalQuery<?> parseQuery)
Returns this formatter as ajava.text.Format
instance that will parse using the specified query. -
Uses of TemporalQuery in java.time.temporal
Methods in java.time.temporal that return TemporalQuery Modifier and Type Method Description static TemporalQuery<Chronology>
TemporalQueries. chronology()
A query for theChronology
.static TemporalQuery<LocalDate>
TemporalQueries. localDate()
A query forLocalDate
returning null if not found.static TemporalQuery<LocalTime>
TemporalQueries. localTime()
A query forLocalTime
returning null if not found.static TemporalQuery<ZoneOffset>
TemporalQueries. offset()
A query forZoneOffset
returning null if not found.static TemporalQuery<TemporalUnit>
TemporalQueries. precision()
A query for the smallest supported unit.static TemporalQuery<ZoneId>
TemporalQueries. zone()
A lenient query for theZoneId
, falling back to theZoneOffset
.static TemporalQuery<ZoneId>
TemporalQueries. zoneId()
A strict query for theZoneId
.Methods in java.time.temporal with parameters of type TemporalQuery Modifier and Type Method Description default <R> R
TemporalAccessor. query(TemporalQuery<R> query)
Queries this date-time.