public class SpeciesBatchNaturalOrderComparator<R extends SpeciesAbleBatch> extends Object implements Comparator<R>, Serializable
SpeciesAbleBatch.getRankOrder() for the parents and keep using the
rowIndex for the children.
Created on 8/30/14.| Constructor and Description |
|---|
SpeciesBatchNaturalOrderComparator(List<R> data) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(R o1,
R o2) |
protected SpeciesAbleBatch |
getRootBatch(SpeciesAbleBatch o) |
static <R extends SpeciesAbleBatch> |
sort(List<R> data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic static <R extends SpeciesAbleBatch> void sort(List<R> data)
public int compare(R o1, R o2)
compare in interface Comparator<R extends SpeciesAbleBatch>protected SpeciesAbleBatch getRootBatch(SpeciesAbleBatch o)
Copyright © 2012–2014 Ifremer. All rights reserved.