package model; import java.util.ArrayList; import java.util.HashMap; import java.util.List; /** * Holds a table object that stores current games */ public class MatchTable { private HashMap matchTable; public MatchTable() { this.matchTable = new HashMap(); } public void addEntry(ArrayList newEntry) { //create a key from the ip and port TableKey entryKey = new TableKey((String) newEntry.get(0), (Integer) newEntry.get(1)); //get the rest of the entry and use it as the value List entryItems = new ArrayList(); for(int i = 2; i getMatchTable() { return matchTable; } }