public class DoubleInterval
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected double |
m_lowerBoundInclusive |
protected double |
m_upperBoundInclusive |
| Constructor and Description |
|---|
DoubleInterval(double lowerBoundInclusive,
double upperBoundInclusive) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areIdentical(double value1,
double value2) |
boolean |
contains(double value) |
static boolean |
contains(double startInclusive,
double endInclusive,
double value) |
void |
enumerateNumbers(java.util.Collection<java.lang.Object> numbers) |
DoubleInterval |
intersectWith(DoubleInterval that)
Computes the intersection of this interval with the supplied one.
|
protected boolean |
isEqual(double lowerBoundInclusive,
double upperBoundInclusive) |
protected static boolean |
isIntervalEmpty(double lowerBoundInclusive,
double upperBoundInclusive) |
static boolean |
isNaN(long bits) |
static boolean |
isSmallerEqual(boolean positive1,
long magnitude1,
boolean positive2,
long magnitude2) |
static boolean |
isSmallerEqual(double value1,
double value2) |
static double |
nextDouble(double value) |
static double |
previousDouble(double value) |
static int |
subtractIntervalSizeFrom(double lowerBoundInclusive,
double upperBoundInclusive,
int argument) |
int |
subtractSizeFrom(int argument) |
java.lang.String |
toString() |
protected final double m_lowerBoundInclusive
protected final double m_upperBoundInclusive
public DoubleInterval(double lowerBoundInclusive,
double upperBoundInclusive)
public DoubleInterval intersectWith(DoubleInterval that)
protected boolean isEqual(double lowerBoundInclusive,
double upperBoundInclusive)
public int subtractSizeFrom(int argument)
public boolean contains(double value)
public void enumerateNumbers(java.util.Collection<java.lang.Object> numbers)
public java.lang.String toString()
toString in class java.lang.Objectpublic static boolean isNaN(long bits)
protected static boolean isIntervalEmpty(double lowerBoundInclusive,
double upperBoundInclusive)
public static boolean areIdentical(double value1,
double value2)
public static double nextDouble(double value)
public static double previousDouble(double value)
public static int subtractIntervalSizeFrom(double lowerBoundInclusive,
double upperBoundInclusive,
int argument)
public static boolean contains(double startInclusive,
double endInclusive,
double value)
public static boolean isSmallerEqual(double value1,
double value2)
public static boolean isSmallerEqual(boolean positive1,
long magnitude1,
boolean positive2,
long magnitude2)