|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.core.Interval
public final class Interval
Defines interval of numbers which is part of FDV definition which consist of one or several intervals.
| Field Summary | |
|---|---|
int |
max
It specifies the maximal value in the interval. |
int |
min
It specifies the minimal value in the interval. |
| Constructor Summary | |
|---|---|
Interval()
It creates the largest possible interval. |
|
Interval(int min,
int max)
It creates an interval with a given minimum and maximal value. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
eq(Interval interval)
It checks equality between intervals. |
int |
max()
It returns the right bound of the interval (maximum value). |
int |
min()
It returns the left range of the interval (minimum value). |
boolean |
singleton()
It checks if an intervals contains only one value (singleton). |
boolean |
singleton(int c)
It checks if an intervals contains only value c. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int max
public final int min
| Constructor Detail |
|---|
public Interval()
public Interval(int min,
int max)
min - the minimal value in the interval (the left bound).max - the maximal value in the interval (the right bound).| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean eq(Interval interval)
interval - the inerval to which the comparison is made.
public int max()
public int min()
public boolean singleton()
public boolean singleton(int c)
c - integer value to which the singleton is compared to.
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||