Home | History | Annotate | Download | only in chrono

Lines Matching refs:query

277      * allowing it to be used as a query via method reference, {@code ChronoLocalDate::from}.
289 Chronology chrono = temporal.query(TemporalQueries.chronology());
488 * Queries this date using the specified query.
490 * This queries this date using the specified query strategy object.
492 * obtain the result. Read the documentation of the query to understand
497 * specified query passing {@code this} as the argument.
500 * @param query the query to invoke, not null
501 * @return the query result, null may be returned (defined by the query)
502 * @throws DateTimeException if unable to query (defined by the query)
503 * @throws ArithmeticException if numeric overflow occurs (defined by the query)
507 default <R> R query(TemporalQuery<R> query) {
508 if (query == TemporalQueries.zoneId() || query == TemporalQueries.zone() || query == TemporalQueries.offset()) {
510 } else if (query == TemporalQueries.localTime()) {
512 } else if (query == TemporalQueries.chronology()) {
514 } else if (query == TemporalQueries.precision()) {
517 // inline TemporalAccessor.super.query(query) as an optimization
519 return query.queryFrom(this);