Package sim.util

Class Interval

java.lang.Object
sim.util.Interval

public class Interval extends 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 Details

    • Interval

      public Interval(long min, long max)
    • Interval

      public Interval(double min, double max)
  • Method Details

    • getMin

      public Number getMin()
    • getMax

      public Number getMax()
    • isDouble

      public boolean isDouble()
    • contains

      public boolean contains(Number val)
    • contains

      public boolean contains(double val)