Home | History | Annotate | Download | only in chrono

Lines Matching refs:query

157      * allowing it to be used as a query via method reference, {@code ChronoLocalDateTime::from}.
169 Chronology chrono = temporal.query(TemporalQueries.chronology());
317 * Queries this date-time using the specified query.
319 * This queries this date-time using the specified query strategy object.
321 * obtain the result. Read the documentation of the query to understand
326 * specified query passing {@code this} as the argument.
329 * @param query the query to invoke, not null
330 * @return the query result, null may be returned (defined by the query)
331 * @throws DateTimeException if unable to query (defined by the query)
332 * @throws ArithmeticException if numeric overflow occurs (defined by the query)
336 default <R> R query(TemporalQuery<R> query) {
337 if (query == TemporalQueries.zoneId() || query == TemporalQueries.zone() || query == TemporalQueries.offset()) {
339 } else if (query == TemporalQueries.localTime()) {
341 } else if (query == TemporalQueries.chronology()) {
343 } else if (query == TemporalQueries.precision()) {
346 // inline TemporalAccessor.super.query(query) as an optimization
348 return query.queryFrom(this);