Class PlayerUnitRoleSorter
java.lang.Object
megamek.client.ui.swing.lobby.sorters.PlayerUnitRoleSorter
- All Implemented Interfaces:
Comparator<Entity>
,MekTableSorter
A Lobby Mek Table sorter that sorts by 1) player 2) unit role.
-
Nested Class Summary
Nested classes/interfaces inherited from interface megamek.client.ui.swing.lobby.sorters.MekTableSorter
MekTableSorter.Sorting
-
Constructor Summary
ConstructorsConstructorDescriptionA Lobby Mek Table sorter that sorts by 1) player 2) unit role. -
Method Summary
Modifier and TypeMethodDescriptionint
int
Returns the column index of the Mek Table that this sorter is to be used with.Returns the info that is displayed in the column header to show the sorting that is used, such as "Team / BV".Returns the sorting direction.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface megamek.client.ui.swing.lobby.sorters.MekTableSorter
bigger, isAllowed, smaller
-
Constructor Details
-
PlayerUnitRoleSorter
A Lobby Mek Table sorter that sorts by 1) player 2) unit role.
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Entity>
-
getDisplayName
Description copied from interface:MekTableSorter
Returns the info that is displayed in the column header to show the sorting that is used, such as "Team / BV".- Specified by:
getDisplayName
in interfaceMekTableSorter
-
getColumnIndex
public int getColumnIndex()Description copied from interface:MekTableSorter
Returns the column index of the Mek Table that this sorter is to be used with.- Specified by:
getColumnIndex
in interfaceMekTableSorter
-
getSortingDirection
Description copied from interface:MekTableSorter
Returns the sorting direction.- Specified by:
getSortingDirection
in interfaceMekTableSorter
-