|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IRange
Interface for a Range.
| Field Summary | |
|---|---|
static int |
EXCLUDE_BOUNDS
|
static int |
INCLUDE_BOUNDS
The IRange types. |
static int |
INCLUDE_LOWER_BOUND
|
static int |
INCLUDE_UPPER_BOUND
|
| Method Summary | |
|---|---|
boolean |
isInRange(double value)
Check if a value is within the IRange. |
double |
lowerBound()
Get the lower bound. |
boolean |
setLowerBound(double lowerBound)
Set the lower bound. |
boolean |
setType(int type)
Set the IRange type. |
boolean |
setUpperBound(double upperBound)
Set the upper bound. |
int |
type()
Get the IRange type. |
double |
upperBound()
Get the upper bound. |
| Field Detail |
|---|
static final int INCLUDE_BOUNDS
static final int INCLUDE_UPPER_BOUND
static final int INCLUDE_LOWER_BOUND
static final int EXCLUDE_BOUNDS
| Method Detail |
|---|
int type()
boolean setType(int type)
type - The IRange type.
true if the type was set succesfully
false otherwisedouble lowerBound()
double upperBound()
boolean setLowerBound(double lowerBound)
lowerBound - The lower bound.
true if the lower bound was set succesfully
false if lowerBound is greater than the upper bound.boolean setUpperBound(double upperBound)
upperBound - The upper bound.
true if the upper bound was set succesfully
false if upperBound is smaller than the lower bound.boolean isInRange(double value)
value - The value to check.
true if the value is within the range.
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||