public class Interval
extends java.lang.Object
Constructor and Description |
---|
Interval()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Interval |
clone()
It allows to clone correctly an interval
|
double |
getLeft()
It returns the left bound of an interval
|
double |
getRight()
It returns the right bound of an interval
|
boolean |
isCovered(double x)
It checks whether a value is covered by an interval
|
void |
setLeft(double value)
It sets the left bound of an interval
|
void |
setRight(double value)
It sets the right bound of an interval
|
public boolean isCovered(double x)
It checks whether a value is covered by an interval
x
- The value to checkpublic double getLeft()
It returns the left bound of an interval
public double getRight()
It returns the right bound of an interval
public void setLeft(double value)
It sets the left bound of an interval
value
- A value representing the left bound of the intervalpublic void setRight(double value)
It sets the right bound of an interval
value
- A value representing the right bound of the intervalpublic Interval clone()
It allows to clone correctly an interval
clone
in class java.lang.Object