(Double o1, Double o2)
| 79 | IndexTable idt = new IndexTable(list, new Comparator<Double>() { |
| 80 | |
| 81 | @Override |
| 82 | public int compare(Double o1, Double o2) |
| 83 | { |
| 84 | return -o1.compareTo(o2); |
| 85 | } |
| 86 | }); |
| 87 | for(int i = 0; i < idt.length()-1; i++) |
| 88 | assertTrue(list.get(idt.index(i)).compareTo(list.get(idt.index(i+1))) >= 0); |