Class SimpleBoundedInterval

    • Constructor Detail

      • SimpleBoundedInterval

        public SimpleBoundedInterval​(double start,
                                     double extent)
      • SimpleBoundedInterval

        public SimpleBoundedInterval​(double start,
                                     double minimum,
                                     double maximum)
      • SimpleBoundedInterval

        public SimpleBoundedInterval​(double start,
                                     double extent,
                                     double minimum,
                                     double maximum)
      • SimpleBoundedInterval

        public SimpleBoundedInterval​(MutableInterval interval,
                                     double minimum,
                                     double maximum)
    • Method Detail

      • setValue

        public void setValue​(double value,
                             double extent)
        Specified by:
        setValue in interface MutableInterval
      • getStart

        public double getStart()
        Specified by:
        getStart in interface Interval
      • getEnd

        public double getEnd()
        Specified by:
        getEnd in interface Interval
      • getExtent

        public double getExtent()
        Specified by:
        getExtent in interface Interval
      • contains

        public boolean contains​(double value)
        Description copied from interface: Interval
        Tests if this interval contains the specified value
        Specified by:
        contains in interface Interval
        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
        Specified by:
        contains in interface Interval
        Parameters:
        start - the value to test
        end - the value to test
        Returns:
        true if the interval contains the value, false otherwise
      • contains

        public boolean contains​(Interval interval)
        Description copied from interface: Interval
        Tests if this interval contains the specified interval
        Specified by:
        contains in interface 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.
        Specified by:
        overlaps in interface Interval
        Parameters:
        start - the interval to test
        end - the interval to test
        Returns:
        true if this interval overlaps the specified interval, false otherwise
      • overlaps

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

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

        public boolean isInverted()
        Specified by:
        isInverted in interface Interval
      • setMinMax

        public void setMinMax​(double min,
                              double max,
                              double minExtent,
                              double maxExtent)
        Specified by:
        setMinMax in interface MutableBoundedInterval
      • toString

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