public class Range
extends java.lang.Object
Constructor and Description |
---|
Range(double start,
double end)
Initialize with start...end values, sorting them to get lower...upper.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
double |
getLower() |
double |
getUpper() |
int |
hashCode() |
boolean |
inRange(double value)
If a value in the range or not.
|
boolean |
inRange(double value,
boolean includeBoundary)
If a value in the range or not.
|
boolean |
isMinBigger() |
java.lang.String |
toString() |
public Range(double start, double end)
start
- the start value of rangeend
- the end value of rangepublic boolean inRange(double value, boolean includeBoundary)
value
- includeBoundary
- true if the boundary should be considered.public boolean inRange(double value)
value
- public boolean isMinBigger()
public double getLower()
public double getUpper()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object