Class RealInterval


  • public class RealInterval
    extends Interval<Double>
    This is an interval on the real line.

    This class is immutable.

    • Constructor Detail

      • RealInterval

        public RealInterval​(Double begin,
                            Double end)
        Construct an interval on the real line.
        Parameters:
        begin - the beginning of this interval
        end - the end of this interval
    • Method Detail

      • lower

        public double lower()
        Get the lower bound of this interval.
        Returns:
        the lower bound of this interval
      • upper

        public double upper()
        Get the upper bound of this interval.
        Returns:
        the upper bound of this interval