|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
D
- the type of Distance usedpublic interface Distance<D extends Distance<D>>
The interface Distance defines the requirements of any instance class.
See DistanceUtil
for related utility functions such as min
, max
.
DistanceUtil
Method Summary | |
---|---|
String |
description()
Returns a String as description of this Distance. |
int |
externalizableSize()
Returns the number of Bytes this distance uses if it is written to an external file. |
D |
minus(D distance)
Returns a new Distance by subtracting the given distance from this distance. |
D |
plus(D distance)
Returns a new distance as sum of this distance and the given distance. |
String |
toString()
Any implementing class should implement a proper toString-method for printing the result-values. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface java.io.Externalizable |
---|
readExternal, writeExternal |
Method Detail |
---|
D plus(D distance)
distance
- the distance to be added to this distance
D minus(D distance)
distance
- the distance to be subtracted from this distance
String description()
String toString()
toString
in class Object
int externalizableSize()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |