2
* Copyright (C) 2009 Bernhard Heibler
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* This is multimap to store city information for the Address Locator
16
* Author: Bernhard Heibler
17
* Create date: 02-Jan-2009
20
package uk.me.parabola.mkgmap.general;
22
import java.util.ArrayList;
23
import java.util.Collection;
24
import java.util.HashMap;
27
public class MapPointMultiMap{
29
private final Map<String,ArrayList<MapPoint>> map = new HashMap<String, ArrayList<MapPoint>>();
31
public MapPoint put(String name, MapPoint p)
33
ArrayList<MapPoint> list;
39
list = new ArrayList<MapPoint>();
49
public MapPoint get(String name)
51
ArrayList<MapPoint> list;
61
public Collection<MapPoint> getList(String name)