public class FloatInterval extends Object
| Constructor and Description |
|---|
FloatInterval(float lowerBoundInclusive,
float upperBoundInclusive) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areIdentical(float value1,
float value2) |
boolean |
contains(float value) |
static boolean |
contains(float startInclusive,
float endInclusive,
float value) |
void |
enumerateNumbers(Collection<Object> numbers) |
FloatInterval |
intersectWith(FloatInterval that)
Computes the intersection of this interval with the supplied one.
|
static boolean |
isNaN(int bits) |
static boolean |
isSmallerEqual(boolean positive1,
int magnitude1,
boolean positive2,
int magnitude2) |
static boolean |
isSmallerEqual(float value1,
float value2) |
static float |
nextFloat(float value) |
static float |
previousFloat(float value) |
static int |
subtractIntervalSizeFrom(float lowerBoundInclusive,
float upperBoundInclusive,
int _argument) |
int |
subtractSizeFrom(int argument) |
String |
toString() |
public FloatInterval(float lowerBoundInclusive,
float upperBoundInclusive)
lowerBoundInclusive - lowerBoundInclusiveupperBoundInclusive - upperBoundInclusivepublic FloatInterval intersectWith(FloatInterval that)
that - thatpublic int subtractSizeFrom(int argument)
argument - argumentpublic boolean contains(float value)
value - valuepublic void enumerateNumbers(Collection<Object> numbers)
numbers - numberspublic static boolean isNaN(int bits)
bits - bits to testpublic static boolean areIdentical(float value1,
float value2)
value1 - value1value2 - value2public static float nextFloat(float value)
value - valuepublic static float previousFloat(float value)
value - floatpublic static int subtractIntervalSizeFrom(float lowerBoundInclusive,
float upperBoundInclusive,
int _argument)
lowerBoundInclusive - lowerBoundInclusiveupperBoundInclusive - upperBoundInclusive_argument - argumentpublic static boolean contains(float startInclusive,
float endInclusive,
float value)
startInclusive - startendInclusive - endvalue - valuepublic static boolean isSmallerEqual(float value1,
float value2)
value1 - value1value2 - value2public static boolean isSmallerEqual(boolean positive1,
int magnitude1,
boolean positive2,
int magnitude2)
positive1 - positive1magnitude1 - magnitude1positive2 - positive2magnitude2 - magnitude2Copyright © 2020. All rights reserved.