@Equality public class Subrange extends Object
| Constructor and Description |
|---|
Subrange()
Constructs a subrange covering the whole range 0-1.
|
Subrange(double lo,
double hi)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
double |
getHigh()
Returns upper limit.
|
double |
getLow()
Returns lower limit.
|
int |
hashCode() |
static boolean |
isIdentity(Subrange subrange)
Indicates whether a given subrange is the identity operation,
that is has no effect on a range to which it is applied.
|
String |
toString() |
public Subrange(double lo,
double hi)
lo - lower limithi - upper limitIllegalArgumentException - unless lo<=hipublic Subrange()
public double getLow()
public double getHigh()
public static boolean isIdentity(Subrange subrange)
subrange - subrange to testCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.