stonedloottracker: Final fields

This commit is contained in:
sdburns1998
2019-07-07 21:15:26 +02:00
parent ab203bf57d
commit 7808d638b4
4 changed files with 14 additions and 14 deletions

View File

@@ -161,9 +161,9 @@ public class StonedLootTrackerPlugin extends Plugin
private NavigationButton navButton;
private String eventType;
private Multimap<String, LootRecordCustom> lootRecordMultimap = ArrayListMultimap.create();
private Multimap<String, UniqueItemPrepared> uniques = ArrayListMultimap.create();
private Map<String, Integer> killCountMap = new HashMap<>();
private final Multimap<String, LootRecordCustom> lootRecordMultimap = ArrayListMultimap.create();
private final Multimap<String, UniqueItemPrepared> uniques = ArrayListMultimap.create();
private final Map<String, Integer> killCountMap = new HashMap<>();
// key = name, value=current killCount
private boolean loaded = false;

View File

@@ -44,7 +44,7 @@ class LootGrid extends JPanel
private static final int ITEMS_PER_ROW = 5;
private static final Dimension ITEM_SIZE = new Dimension(40, 40);
private final LootTrackerItemEntry[] itemsToDisplay;
private ItemManager itemManager;
private final ItemManager itemManager;
LootGrid(final LootTrackerItemEntry[] itemsToDisplay, final ItemManager itemManager)
{

View File

@@ -52,12 +52,12 @@ import net.runelite.client.ui.ColorScheme;
@Singleton
class LootPanel extends JPanel
{
private Collection<LootRecordCustom> records;
private Map<Integer, Collection<UniqueItemPrepared>> uniqueMap;
private boolean hideUniques;
private ItemSortTypes sortType;
private boolean itemBreakdown;
private ItemManager itemManager;
private final Collection<LootRecordCustom> records;
private final Map<Integer, Collection<UniqueItemPrepared>> uniqueMap;
private final boolean hideUniques;
private final ItemSortTypes sortType;
private final boolean itemBreakdown;
private final ItemManager itemManager;
// Consolidate LTItemEntries stored by ItemID
private Map<Integer, LootTrackerItemEntry> consolidated;

View File

@@ -53,15 +53,15 @@ import net.runelite.client.ui.components.materialtabs.MaterialTabGroup;
@Singleton
class SelectionPanel extends JPanel
{
private TreeSet<String> names;
private LootTrackerPanel parent;
private ItemManager itemManager;
private final TreeSet<String> names;
private final LootTrackerPanel parent;
private final ItemManager itemManager;
private final static Color BACKGROUND_COLOR = ColorScheme.DARK_GRAY_COLOR;
private final static Color BUTTON_COLOR = ColorScheme.DARKER_GRAY_COLOR;
private final static Color BUTTON_HOVER_COLOR = ColorScheme.DARKER_GRAY_HOVER_COLOR;
private boolean configToggle;
private final boolean configToggle;
SelectionPanel(final boolean configToggle, final TreeSet<String> names, final LootTrackerPanel parent, final ItemManager itemManager)
{