|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectndiff.relation.Interval
public class Interval
| Field Summary | |
|---|---|
int |
inf
|
int |
sup
|
| Constructor Summary | |
|---|---|
Interval(int inf,
int sup)
Costruttore |
|
| Method Summary | |
|---|---|
Interval |
clone()
|
boolean |
isIntro(int num)
Controlla se un numero appartiene all'intervallo, estremi inclusi |
void |
set(Interval intRef)
Imposta gli estremi dell'intervallo uguali a quelli dell'intervallo passato |
void |
set(int inf,
int sup)
Imposta gli estremi dell'intervallo |
java.lang.String |
show()
Per fase di Debug |
int |
size()
Ritorna la dimensione dell'intervallo |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int inf
public int sup
| Constructor Detail |
|---|
public Interval(int inf,
int sup)
inf - Estremo inferioresup - Estremo superiore| Method Detail |
|---|
public void set(int inf,
int sup)
inf - Estremo inferioresup - Estremo superiorepublic void set(Interval intRef)
intRef - Intervallo da cui copiare gli estremipublic int size()
public boolean isIntro(int num)
num - numero da confrontare
public Interval clone()
clone in class java.lang.Objectpublic java.lang.String show()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||