Class DefaultedZonedDateTimeTemporalQuery

    • Field Detail

      • SYSTEM_ZONE_CURRENT_DATE_MIDNIGHT

        public static final DefaultedZonedDateTimeTemporalQuery SYSTEM_ZONE_CURRENT_DATE_MIDNIGHT
        Defaults to the system time zone, the current date (now), and midnight (00:00 o'clock) when a temporal field is missing.
    • Method Detail

      • withClock

        public DefaultedZonedDateTimeTemporalQuery withClock​(Clock clockOverride)
        Returns a new instance with the same behavior defaults as this, but with the given clock used when querying for the current time.
        Parameters:
        clockOverride - Clock to use.
        Returns:
        A new instance with the same behavior defaults as this, but with the given clock used when querying for the current time.
      • getDefaultLocalDate

        protected abstract LocalDate getDefaultLocalDate​(Clock clock,
                                                         ZoneId zone)
      • getDefaultLocalTime

        protected abstract LocalTime getDefaultLocalTime​(Clock clock,
                                                         ZoneId zone)
      • getDefaultZoneId

        protected abstract ZoneId getDefaultZoneId​(Clock clock)