Class DateRange

    • Method Detail

      • getTo

        public OffsetDateTime getTo()
        Exclusive upper bound of the range. Is required if from is not given.
        Specified by:
        getTo in interface Range<OffsetDateTime>
        Returns:
        the upper bound
      • getName

        public String getName()
        Name given to the range
        Returns:
        the name of the range
      • setFrom

        public DateRange 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 DateRange setTo​(OffsetDateTime to)
        Exclusive upper bound of the range. Is required if from is not given.
        Parameters:
        to - the upper bound
        Returns:
        this.
      • setName

        public DateRange setName​(String name)
        Name given to the range
        Parameters:
        name - Name given to the range
        Returns:
        this.