public class DoubleInterval extends Object
| 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(Collection<Object> numbers) |
DoubleInterval |
intersectWith(DoubleInterval that)
Computes the intersection of this interval with the supplied one.
|
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) |
String |
toString() |
public DoubleInterval(double lowerBoundInclusive,
double upperBoundInclusive)
lowerBoundInclusive - lowerBoundInclusiveupperBoundInclusive - upperBoundInclusivepublic DoubleInterval intersectWith(DoubleInterval that)
that - thatpublic int subtractSizeFrom(int argument)
argument - argumentpublic boolean contains(double value)
value - valuepublic void enumerateNumbers(Collection<Object> numbers)
numbers - numberspublic static boolean isNaN(long bits)
bits - bitspublic static boolean areIdentical(double value1,
double value2)
value1 - value1value2 - value2public static double nextDouble(double value)
value - valuepublic static double previousDouble(double value)
value - valuepublic static int subtractIntervalSizeFrom(double lowerBoundInclusive,
double upperBoundInclusive,
int _argument)
lowerBoundInclusive - lowerBoundInclusiveupperBoundInclusive - upperBoundInclusive_argument - argumentpublic static boolean contains(double startInclusive,
double endInclusive,
double value)
startInclusive - startInclusiveendInclusive - endInclusivevalue - valuepublic static boolean isSmallerEqual(double value1,
double value2)
value1 - value1value2 - value2public static boolean isSmallerEqual(boolean positive1,
long magnitude1,
boolean positive2,
long magnitude2)
positive1 - positive1magnitude1 - magnitude1positive2 - positive2magnitude2 - magnitude2Copyright © 2020. All rights reserved.