Home | History | Annotate | Download | only in temporal

Lines Matching refs:query

85  * Examples might be a query that checks if the date is the day before February 29th
94 * The second is to use {@link TemporalAccessor#query(TemporalQuery)}:
98 * temporal = temporal.query(thisQuery);
100 * It is recommended to use the second approach, {@code query(TemporalQuery)},
136 * A strict query for the {@code ZoneId}.
144 * In most cases, applications should use {@link #zone()} as this query is too strict.
165 * @return a query that can obtain the zone ID of a temporal, not null
172 * A query for the {@code Chronology}.
201 * That method is equivalent to this query, except that it throws an
204 * @return a query that can obtain the chronology of a temporal, not null
211 * A query for the smallest supported unit.
241 * @return a query that can obtain the precision of a temporal, not null
250 * A lenient query for the {@code ZoneId}, falling back to the {@code ZoneOffset}.
258 * In most cases, applications should use this query rather than {@code #zoneId()}.
262 * That method is equivalent to this query, except that it throws an
265 * @return a query that can obtain the zone ID or offset of a temporal, not null
272 * A query for {@code ZoneOffset} returning null if not found.
274 * This returns a {@code TemporalQuery} that can be used to query a temporal
275 * object for the offset. The query will return null if the temporal
278 * The query implementation examines the {@link ChronoField#OFFSET_SECONDS OFFSET_SECONDS}
283 * This query and {@code ZoneOffset::from} will return the same result if the
286 * query will return null.
288 * @return a query that can obtain the offset of a temporal, not null
295 * A query for {@code LocalDate} returning null if not found.
297 * This returns a {@code TemporalQuery} that can be used to query a temporal
298 * object for the local date. The query will return null if the temporal
301 * The query implementation examines the {@link ChronoField#EPOCH_DAY EPOCH_DAY}
306 * This query and {@code LocalDate::from} will return the same result if the
309 * query will return null.
311 * @return a query that can obtain the date of a temporal, not null
318 * A query for {@code LocalTime} returning null if not found.
320 * This returns a {@code TemporalQuery} that can be used to query a temporal
321 * object for the local time. The query will return null if the temporal
324 * The query implementation examines the {@link ChronoField#NANO_OF_DAY NANO_OF_DAY}
329 * This query and {@code LocalTime::from} will return the same result if the
332 * query will return null.
334 * @return a query that can obtain the time of a temporal, not null
342 * A strict query for the {@code ZoneId}.
345 temporal.query(TemporalQueries.ZONE_ID);
348 query for the {@code Chronology}.
351 temporal.query(TemporalQueries.CHRONO);
354 * A query for the smallest supported unit.
357 temporal.query(TemporalQueries.PRECISION);
361 * A query for {@code ZoneOffset} returning null if not found.
371 * A lenient query for the {@code ZoneId}, falling back to the {@code ZoneOffset}.
374 ZoneId zone = temporal.query(ZONE_ID);
375 return (zone != null ? zone : temporal.query(OFFSET));
379 * A query for {@code LocalDate} returning null if not found.
389 * A query for {@code LocalTime} returning null if not found.