forked from External/mage
comparation simplified
This commit is contained in:
parent
022c1407ed
commit
7da043afd0
6 changed files with 12 additions and 18 deletions
|
|
@ -12,7 +12,7 @@ public class CardViewCostComparator implements Comparator<CardView> {
|
|||
|
||||
@Override
|
||||
public int compare(CardView o1, CardView o2) {
|
||||
return Integer.valueOf(o1.getConvertedManaCost()).compareTo(o2.getConvertedManaCost());
|
||||
return Integer.compare(o1.getConvertedManaCost(), o2.getConvertedManaCost());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue