mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Initial migration
This commit is contained in:
@@ -35,7 +35,6 @@ import java.awt.event.KeyEvent;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.MouseMotionAdapter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Enumeration;
|
||||
import java.util.LinkedList;
|
||||
@@ -165,8 +164,9 @@ public final class ItemListView<T extends InventoryItem> extends ItemView<T> {
|
||||
columns.add(colOverrides.get(colConfig.getDef()));
|
||||
}
|
||||
}
|
||||
Collections.sort(columns, new Comparator<ItemTableColumn>() {
|
||||
@Override public int compare(final ItemTableColumn arg0, final ItemTableColumn arg1) {
|
||||
columns.sort(new Comparator<ItemTableColumn>() {
|
||||
@Override
|
||||
public int compare(final ItemTableColumn arg0, final ItemTableColumn arg1) {
|
||||
return Integer.compare(arg0.getIndex(), arg1.getIndex());
|
||||
}
|
||||
});
|
||||
|
||||
@@ -4,7 +4,6 @@ import java.awt.Color;
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
@@ -47,7 +46,7 @@ public class ContestGauntletLister extends JPanel {
|
||||
final List<RowPanel> tempRows = new ArrayList<RowPanel>();
|
||||
final List<GauntletData> sorted = new ArrayList<GauntletData>();
|
||||
for (final GauntletData gd : gd0) { sorted.add(gd); }
|
||||
Collections.sort(sorted, new Comparator<GauntletData>() {
|
||||
sorted.sort(new Comparator<GauntletData>() {
|
||||
@Override
|
||||
public int compare(final GauntletData x, final GauntletData y) {
|
||||
return x.getName().compareTo(y.getName());
|
||||
|
||||
@@ -4,7 +4,6 @@ import java.awt.Color;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
@@ -66,7 +65,7 @@ public class QuickGauntletLister extends JPanel {
|
||||
final List<RowPanel> tempRows = new ArrayList<RowPanel>();
|
||||
final List<GauntletData> sorted = new ArrayList<GauntletData>();
|
||||
for (final GauntletData gd : gauntlets) { sorted.add(gd); }
|
||||
Collections.sort(sorted, new Comparator<GauntletData>() {
|
||||
sorted.sort(new Comparator<GauntletData>() {
|
||||
@Override
|
||||
public int compare(final GauntletData x, final GauntletData y) {
|
||||
return x.getName().toLowerCase().compareTo(y.getName().toLowerCase());
|
||||
|
||||
@@ -67,7 +67,7 @@ public class QuestFileLister extends JPanel {
|
||||
List<RowPanel> tempRows = new ArrayList<RowPanel>();
|
||||
List<QuestData> sorted = new ArrayList<QuestData>();
|
||||
for (QuestData qd : qd0) { sorted.add(qd); }
|
||||
Collections.sort(sorted, new Comparator<QuestData>() {
|
||||
sorted.sort(new Comparator<QuestData>() {
|
||||
@Override
|
||||
public int compare(final QuestData x, final QuestData y) {
|
||||
return x.getName().toLowerCase().compareTo(y.getName().toLowerCase());
|
||||
|
||||
@@ -19,7 +19,6 @@ package forge.view.arcane;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
|
||||
import java.awt.event.MouseEvent;
|
||||
@@ -127,7 +126,7 @@ public class FloatingZone extends FloatingCardArea {
|
||||
if ( zoneCards != null ) {
|
||||
cardList = new FCollection<CardView>(zoneCards);
|
||||
if ( sortedByName ) {
|
||||
Collections.sort(cardList, comp);
|
||||
cardList.sort(comp);
|
||||
}
|
||||
return cardList;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user