|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unibi.techfak.jpredictor.gui.Distance
public class Distance
| Field Summary | |
|---|---|
private int |
max
The maximal distance as an int value. |
private int |
min
The minimal distance as an int value. |
| Constructor Summary | |
|---|---|
Distance()
Constructs the object and sets distance to zero. |
|
Distance(Distance dist)
Constructs the object and sets the distance. |
|
Distance(int dist)
Constructs the object and sets the distance to zero, since both min and max are set to dist. |
|
Distance(int mindist,
int maxdist)
Constructs the object and sets the distance. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
int |
max()
|
int |
min()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int min
private int max
| Constructor Detail |
|---|
public Distance()
public Distance(int dist)
dist - The new distance.
public Distance(int mindist,
int maxdist)
mindist
is greater than maxdist, both are changed.
mindist - The minimal distance.maxdist - The maximal distance.public Distance(Distance dist)
mindist
is greater than maxdist, both are changed.
dist - The initial distance.| Method Detail |
|---|
public int min()
public int max()
public java.lang.Object clone()
clone in class java.lang.Objectpublic 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 | ||||||||