|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjasi.sim.geo.cartesian.Space.Distance
public static final class Space.Distance
Distance function, which imposes a total ordering by comparing the distance to a center.
Constructor Summary | |
---|---|
Space.Distance(Space center)
Constructor. |
Method Summary | |
---|---|
int |
compare(Space s1,
Space s2)
Compares its two arguments for order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public Space.Distance(Space center)
center
- The center of the distances.Method Detail |
---|
public int compare(Space s1, Space s2)
compare
in interface java.util.Comparator<Space>
s1
- The first object to be compared.s2
- The second object to be compared.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |