Package sim.util
Class Interval
java.lang.Object
sim.util.Interval
Defines an inclusive (closed) interval between two numerical values MIN and MAX.
Beware that if you pass in an integer to Interval, it is converted internally to a Long,
and not to a Double.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Interval
public Interval(long min, long max) -
Interval
public Interval(double min, double max)
-
-
Method Details
-
getMin
-
getMax
-
isDouble
public boolean isDouble() -
contains
-
contains
public boolean contains(double val)
-