Class DateRange

    • Constructor Detail

      • DateRange

        public DateRange​(Date bound)
      • DateRange

        public DateRange​(Date lowerBound,
                         Date upperBound)
      • DateRange

        public DateRange​(String source)
    • Method Detail

      • getLowerBound

        public Long getLowerBound()
      • getUpperBound

        public Long getUpperBound()
      • contains

        public boolean contains​(Date value)
        Description copied from class: Range
        WARNING: Due limitation of OpenL which cannot work correctly with class level generics, so it is declared as protected. It needs to define public method in children classes with type of generic parameter. OpenL can correctly select required method or show an error.
        Overrides:
        contains in class Range<Date>
        Parameters:
        value - value to check it is in the range (interval)
        Returns:
        true if the value is in the interval
      • distance

        public static int distance​(Date x,
                                   DateRange y)
      • distance

        public static int distance​(long x,
                                   DateRange y)