Class DateRangeQuery.DateRange

  • Enclosing class:

    public static class DateRangeQuery.DateRange
    extends Range<Date>
    since 5.10, use Range instead
    Class to represent a date range. Inclusion/exclusion of bounds is settable. Immutable.
    • Constructor Detail

      • DateRange

        public DateRange​(@Nullable Date from,
                         @Nullable Date to,
                         boolean includeFrom,
                         boolean includeTo)
        Construct a DateRange object.
        from - The date from which this date range begins (can be null)
        to - The date on which this date range ends (can be null)
        includeFrom - Whether or not the "from date" is inclusive
        includeTo - Whether or not the "to date" is inclusive