Class ClosedInterval

    • Constructor Detail

      • ClosedInterval

        public ClosedInterval​(double start,
                              double extent)
    • Method Detail

      • setStart

        public void setStart​(double value)
      • setEnd

        public void setEnd​(double value)
      • setExtent

        public void setExtent​(double extent)
      • setValue

        public void setValue​(double value,
                             double extent)
      • getStart

        public double getStart()
      • getEnd

        public double getEnd()
      • getExtent

        public double getExtent()
      • contains

        @JsIgnore
        public boolean contains​(double value)
        Description copied from interface: Interval
        Tests if this interval contains the specified value
        Parameters:
        value - the value to test
        Returns:
        true if the interval contains the value, false otherwise
      • contains

        public boolean contains​(double start,
                                double end)
        Description copied from interface: Interval
        Tests if this interval contains the specified interval
        Parameters:
        start - the value to test
        end - the value to test
        Returns:
        true if the interval contains the value, false otherwise
      • contains

        @JsIgnore
        public boolean contains​(Interval interval)
        Description copied from interface: Interval
        Tests if this interval contains the specified interval
        Parameters:
        interval - the interval to test
        Returns:
        true if the interval contains the value, false otherwise
      • overlaps

        public boolean overlaps​(double start,
                                double end)
        Description copied from interface: Interval
        Tests if this interval overlaps the specified interval.
        Parameters:
        start - the interval to test
        end - the interval to test
        Returns:
        true if this interval overlaps the specified interval, false otherwise
      • overlaps

        @JsIgnore
        public boolean overlaps​(Interval interval)
        Description copied from interface: Interval
        Tests if this interval overlaps the specified interval.
        Parameters:
        interval - the interval to test
        Returns:
        true if this interval overlaps the specified interval, false otherwise
      • isInverted

        public boolean isInverted()
      • isDegenerate

        public boolean isDegenerate()
        Description copied from interface: Interval
        Tests whether the starting and ending values are the same
        Returns:
        true if start and end values are identical, false otherwise
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object