|
SSJ V. labo. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.util.DoubleArrayComparator
public class DoubleArrayComparator
DoubleArrayComparator
An implementation of java.util.Comparator which compares two double arrays by comparing their i-th element, where i is given in the constructor. Method compare(d1, d2) returns -1, 0, or 1 depending on whether d1[i] is less than, equal to, or greater than d2[i].
| Constructor Summary | |
|---|---|
DoubleArrayComparator(int i)
. |
|
| Method Summary | |
|---|---|
int |
compare(double[] d1,
double[] d2)
. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public DoubleArrayComparator(int i)
| Method Detail |
|---|
public int compare(double[] d1,
double[] d2)
compare in interface Comparator<double[]>
|
SSJ V. labo. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||