Package com.macrofocus.interval
Class OpenInterval
- java.lang.Object
-
- com.macrofocus.interval.AbstractMutableInterval
-
- com.macrofocus.interval.ClosedInterval
-
- com.macrofocus.interval.PropertyClosedInterval
-
- com.macrofocus.interval.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 Summary
Constructors Constructor Description OpenInterval(double start, double extent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(double value)Tests if this interval contains the specified value-
Methods inherited from class com.macrofocus.interval.PropertyClosedInterval
getEnd, getEndProperty, getStart, getStartProperty, setEnd, setExtent, setStart, setValue, toString
-
Methods inherited from class com.macrofocus.interval.ClosedInterval
contains, contains, getExtent, isDegenerate, isInverted, overlaps, overlaps
-
Methods inherited from class com.macrofocus.interval.AbstractMutableInterval
addIntervalListener, addWeakIntervalListener, notifyIntervalChanged, removeIntervalListener, removeIntervalListeners
-
-
-
-
Method Detail
-
contains
public boolean contains(double value)
Description copied from interface:IntervalTests if this interval contains the specified value- Specified by:
containsin interfaceInterval- Overrides:
containsin classClosedInterval- Parameters:
value- the value to test- Returns:
- true if the interval contains the value, false otherwise
-
-