sim.util
Class Interval

java.lang.Object
  extended by sim.util.Interval

public class Interval
extends java.lang.Object

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
Interval(double min, double max)
           
Interval(long min, long max)
           
 
Method Summary
 java.lang.Number getMax()
           
 java.lang.Number getMin()
           
 boolean isDouble()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interval

public Interval(long min,
                long max)

Interval

public Interval(double min,
                double max)
Method Detail

getMin

public java.lang.Number getMin()

getMax

public java.lang.Number getMax()

isDouble

public boolean isDouble()