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 TypeMethodDescriptionbooleancontains(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, toStringMethods inherited from class com.macrofocus.common.interval.ClosedInterval
containsInterval, containsStartEnd, getExtent, isDegenerate, isInverted, overlaps, overlapsIntervalMethods 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: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
-