java.io.Serializablepublic final class DoubleRange
extends java.lang.Object
implements java.io.Serializable
| Constructor | Description |
|---|---|
DoubleRange(double bound1,
double bound2) |
Constructs the range defined by given values.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
contains(double k) |
Indicates if a value falls within the range of this instance.
|
boolean |
equals(DoubleRange range) |
Tests for equality of mininum and maximum values of this
range with given range
|
double |
maximum() |
The maximum defined by this range.
|
double |
minimum() |
The minimium defined by this range.
|
java.lang.String |
toString() |
Returns String of the form [min,max]
|
public DoubleRange(double bound1,
double bound2)
public double minimum()
public double maximum()
public boolean contains(double k)
k - the tested valuepublic boolean equals(DoubleRange range)
range - public java.lang.String toString()
toString in class java.lang.Object