12345678910 |
- package classes.comparator;
- import classes.StorageElement;
- public class StorageElemCompOnDistance extends StorageElementComparator{
- @Override
- public int compare(StorageElement a, StorageElement b) {
- return Double.compare(a.getLowDistance()+a.getHighDistance(), b.getLowDistance() + b.getHighDistance());
- }
- }
|