|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjasi.sim.geo.cartesian.SpaceVec.IndexComparator
public static final class SpaceVec.IndexComparator
Comparison function, which imposes a total ordering of space vectors by selecting one of the components of the space vector.
Field Summary | |
---|---|
static int |
X
The x-component. |
static int |
Y
The x-component. |
static int |
Z
The x-component. |
Constructor Summary | |
---|---|
SpaceVec.IndexComparator(int component)
Constructor of this component comparator. |
Method Summary | |
---|---|
int |
compare(SpaceVec s1,
SpaceVec 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 |
Field Detail |
---|
public static final int X
public static final int Y
public static final int Z
Constructor Detail |
---|
public SpaceVec.IndexComparator(int component)
component
- The component of the space vectors to be compared.Method Detail |
---|
public int compare(SpaceVec s1, SpaceVec s2)
compare
in interface java.util.Comparator<SpaceVec>
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 |