public class Interval
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Interval |
add(double value) |
Interval |
add(Interval other) |
static Interval |
anyValue() |
Interval |
ceiling(double max) |
double |
closestValueTo(double desiredValue) |
boolean |
contains(double value) |
Interval |
divide(double factor) |
static Interval |
fixed(double minimum,
double maximum) |
Interval |
floor(double min) |
double |
getLower() |
double |
getUpper() |
Interval |
intersection(Interval other) |
Interval |
invert() |
static Interval |
singleValue(double value) |
java.lang.String |
toString() |
static Interval |
unboundedMaximum(double minimum) |
static Interval |
unboundedMinimum(double maximum) |
public static Interval anyValue()
public static Interval unboundedMaximum(double minimum)
public static Interval unboundedMinimum(double maximum)
public static Interval fixed(double minimum, double maximum)
public static Interval singleValue(double value)
public double getLower()
public double getUpper()
public double closestValueTo(double desiredValue)
public Interval divide(double factor)
public Interval add(double value)
public Interval invert()
public Interval ceiling(double max)
public Interval floor(double min)
public boolean contains(double value)
public java.lang.String toString()
toString
in class java.lang.Object