@Test public void testNoMultiLevels() { GetMapListTask task = new GetMapListTask(null, null, null); List<String> mapList = new ArrayList<String>(); mapList.add("Meine Karte"); mapList.add("dance-floor"); List<String> expectedMapList = new ArrayList<String>(mapList); task.makeMultilevelMaps(mapList); assertEquals(expectedMapList.size(), mapList.size()); assertTrue(mapList.containsAll(expectedMapList)); }
protected void makeMultilevelMaps(List<String> mapList) { final Map<String, List<String>> multiLevels = findMultiMapLevels(mapList); for (Map.Entry<String, List<String>> entry : multiLevels.entrySet()) { final String mapName = entry.getKey(); final List<String> levels = entry.getValue(); if (levels.size() > 1) { final StringBuilder multiMap = buildMapLevels(mapName, levels); mapList.add(multiMap.toString()); } } }
GetMapListTask extends AsyncTask { protected void makeMultilevelMaps(List<String> mapList) { final Map<String, List<String>> multiLevels = findMultiMapLevels(mapList); for (Map.Entry<String, List<String>> entry : multiLevels.entrySet()) { final String mapName = entry.getKey(); final List<String> levels = entry.getValue(); if (levels.size() > 1) { final StringBuilder multiMap = buildMapLevels(mapName, levels); mapList.add(multiMap.toString()); } } } }
GetMapListTask extends AsyncTask { protected void makeMultilevelMaps(List<String> mapList) { final Map<String, List<String>> multiLevels = findMultiMapLevels(mapList); for (Map.Entry<String, List<String>> entry : multiLevels.entrySet()) { final String mapName = entry.getKey(); final List<String> levels = entry.getValue(); if (levels.size() > 1) { final StringBuilder multiMap = buildMapLevels(mapName, levels); mapList.add(multiMap.toString()); } } } GetMapListTask(final MapServerClient mapServerClient, final ProgressDialog progressDialog,
                          final ArrayAdapter<String> adapter); }
GetMapListTask extends AsyncTask { protected void makeMultilevelMaps(List<String> mapList) { final Map<String, List<String>> multiLevels = findMultiMapLevels(mapList); for (Map.Entry<String, List<String>> entry : multiLevels.entrySet()) { final String mapName = entry.getKey(); final List<String> levels = entry.getValue(); if (levels.size() > 1) { final StringBuilder multiMap = buildMapLevels(mapName, levels); mapList.add(multiMap.toString()); } } } GetMapListTask(final MapServerClient mapServerClient, final ProgressDialog progressDialog,
                          final ArrayAdapter<String> adapter); @Override void onPostExecute(final Object result); }
GetMapListTask extends AsyncTask { protected void makeMultilevelMaps(List<String> mapList) { final Map<String, List<String>> multiLevels = findMultiMapLevels(mapList); for (Map.Entry<String, List<String>> entry : multiLevels.entrySet()) { final String mapName = entry.getKey(); final List<String> levels = entry.getValue(); if (levels.size() > 1) { final StringBuilder multiMap = buildMapLevels(mapName, levels); mapList.add(multiMap.toString()); } } } GetMapListTask(final MapServerClient mapServerClient, final ProgressDialog progressDialog,
                          final ArrayAdapter<String> adapter); @Override void onPostExecute(final Object result);  }