Class DateRangeFilter

    • Constructor Detail

      • DateRangeFilter

        public DateRangeFilter​(String name)
    • Method Detail

      • setRange

        public DateRangeFilter setRange​(DateRange range)
        Set the range, upper bound exclusive, lower bound inclusive
        Parameters:
        range - The range
        Returns:
        This filter
      • getRange

        public DateRange getRange()
        Get the filter range
        Returns:
        The filter range
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getName

        public String getName()
        The field from your schema upon which to apply your filter
        Specified by:
        getName in interface FieldFilter
        Returns:
        The field name
      • getFrom

        public OffsetDateTime getFrom()
        Inclusive lower bound of the range. Is required if to is not given.
        Returns:
        the lower bound
      • getTo

        public OffsetDateTime getTo()
        Exclusive upper bound of the range. Is required if from is not given.
        Returns:
        the upper bound
      • setFrom

        public DateRangeFilter setFrom​(OffsetDateTime from)
        Inclusive lower bound of the range. Is required if to is not given.
        Parameters:
        from - the lower bound
        Returns:
        this.
      • setTo

        public DateRangeFilter setTo​(OffsetDateTime to)
        Exclusive upper bound of the range. Is required if from is not given.
        Parameters:
        to - the upper bound
        Returns:
        this.