Lines Matching refs:query
158 * allowing it to be used as a query via method reference, {@code ChronoZonedDateTime::from}.
170 Chronology chrono = temporal.query(TemporalQueries.chronology());
464 * Queries this date-time using the specified query.
466 * This queries this date-time using the specified query strategy object.
468 * obtain the result. Read the documentation of the query to understand
473 * specified query passing {@code this} as the argument.
476 * @param query the query to invoke, not null
477 * @return the query result, null may be returned (defined by the query)
478 * @throws DateTimeException if unable to query (defined by the query)
479 * @throws ArithmeticException if numeric overflow occurs (defined by the query)
483 default <R> R query(TemporalQuery<R> query) {
484 if (query == TemporalQueries.zone() || query == TemporalQueries.zoneId()) {
486 } else if (query == TemporalQueries.offset()) {
488 } else if (query == TemporalQueries.localTime()) {
490 } else if (query == TemporalQueries.chronology()) {
492 } else if (query == TemporalQueries.precision()) {
495 // inline TemporalAccessor.super.query(query) as an optimization
497 return query.queryFrom(this);