Class DateRange

    • Constructor Detail

      • DateRange

        public DateRange()
    • Method Detail

      • getCount

        public Long getCount()
        The number of documents matching this range
        Specified by:
        getCount in interface FacetValue
        Returns:
        the count of documents matching this range
      • getName

        public String getName()
        The name of this date range, optional
        Returns:
        the name for this range, or null if no value is defined
      • setFrom

        public DateRange setFrom​(OffsetDateTime from)
        The start of the range, optional
        Parameters:
        from - The start of the date range
        Returns:
        this.
      • setTo

        public DateRange setTo​(OffsetDateTime to)
        The end of the range, optional
        Parameters:
        to - The end of the date range
        Returns:
        this.
      • setCount

        public DateRange setCount​(Long count)
        The number of documents matching this range
        Parameters:
        count - the count of documents
        Returns:
        this.
      • setName

        public DateRange setName​(String name)
        The name of this date range, optional
        Parameters:
        name - the name for this range
        Returns:
        this.