source:
src/main/java/agents/anac/y2019/sacra/yacomponents/BidUtilComparator.java
Last change on this file was 200, checked in by , 5 years ago | |
---|---|
|
|
File size: 280 bytes |
Line | |
---|---|
1 | package agents.anac.y2019.sacra.yacomponents; |
2 | |
3 | import java.util.Comparator; |
4 | |
5 | public class BidUtilComparator implements Comparator<BidUtility> { |
6 | @Override |
7 | public int compare(BidUtility b1, BidUtility b2) { |
8 | return Double.compare(b1.getUtil(), b2.getUtil()); |
9 | } |
10 | } |
Note:
See TracBrowser
for help on using the repository browser.