public static class CellDescriptor.CellComparator extends java.lang.Object implements java.util.Comparator<CellDescriptor>
| Constructor and Description |
|---|
CellDescriptor.CellComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(CellDescriptor cell1,
CellDescriptor cell2)
Compare two cells according to their energy.
|
public int compare(CellDescriptor cell1, CellDescriptor cell2)
compare in interface java.util.Comparator<CellDescriptor>