Class BaseInterval

  • All Implemented Interfaces:
    Interval

    final class BaseInterval
    extends java.lang.Object
    implements Interval
    Base class representing an Interval.
    Since:
    1.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double lower
      Lower bound.
      private double upper
      Upper bound.
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseInterval​(double lower, double upper)
      Create an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getLowerBound()
      Get the lower bound of the interval.
      double getUpperBound()
      Get the upper bound of the interval.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lower

        private final double lower
        Lower bound.
      • upper

        private final double upper
        Upper bound.
    • Constructor Detail

      • BaseInterval

        BaseInterval​(double lower,
                     double upper)
        Create an instance.
        Parameters:
        lower - Lower bound.
        upper - Upper bound.
    • Method Detail

      • getLowerBound

        public double getLowerBound()
        Description copied from interface: Interval
        Get the lower bound of the interval.
        Specified by:
        getLowerBound in interface Interval
        Returns:
        the lower end point of the interval
      • getUpperBound

        public double getUpperBound()
        Description copied from interface: Interval
        Get the upper bound of the interval.
        Specified by:
        getUpperBound in interface Interval
        Returns:
        the upper end point of the interval