Package com.macrofocus.common.interval
Class OpenInterval
java.lang.Object
com.macrofocus.common.interval.AbstractMutableInterval
com.macrofocus.common.interval.ClosedInterval
com.macrofocus.common.interval.PropertyClosedInterval
com.macrofocus.common.interval.OpenInterval
- All Implemented Interfaces:
Interval
,MutableInterval
An open interval is an interval that does not include its end points.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double value) Tests if this interval contains the specified valueMethods inherited from class com.macrofocus.common.interval.PropertyClosedInterval
getEnd, getEndProperty, getStart, getStartProperty, setEnd, setExtent, setStart, setValue, toString
Methods inherited from class com.macrofocus.common.interval.ClosedInterval
containsInterval, containsStartEnd, getExtent, isDegenerate, isInverted, overlaps, overlapsInterval
Methods inherited from class com.macrofocus.common.interval.AbstractMutableInterval
addIntervalListener, addWeakIntervalListener, notifyIntervalChanged, removeIntervalListener, removeIntervalListeners
-
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 interfaceInterval
- Overrides:
contains
in classClosedInterval
- Parameters:
value
- the value to test- Returns:
- true if the interval contains the value, false otherwise
-