Class OpenInterval

All Implemented Interfaces:
Interval, MutableInterval

public class OpenInterval extends PropertyClosedInterval
An open interval is an interval that does not include its end points.
  • Constructor Details

    • OpenInterval

      public OpenInterval(double start, double extent)
  • Method Details

    • 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
      Overrides:
      contains in class ClosedInterval
      Parameters:
      value - the value to test
      Returns:
      true if the interval contains the value, false otherwise