9 |
import java.util.HashSet; |
import java.util.HashSet; |
10 |
import java.util.List; |
import java.util.List; |
11 |
import java.util.Map; |
import java.util.Map; |
12 |
|
import java.util.Map.Entry; |
13 |
import java.util.Set; |
import java.util.Set; |
14 |
|
import java.util.TreeMap; |
15 |
|
import java.util.TreeSet; |
16 |
import java.util.concurrent.ConcurrentHashMap; |
import java.util.concurrent.ConcurrentHashMap; |
17 |
|
|
18 |
import org.apache.commons.lang3.StringUtils; |
import org.apache.commons.lang3.StringUtils; |
619 |
return aliasSet; |
return aliasSet; |
620 |
} |
} |
621 |
|
|
622 |
|
public Set<Integer> getPostnumre() { |
623 |
|
return new TreeSet<Integer>( searchPostnrVejnavnGadeid.keySet() ); |
624 |
|
} |
625 |
|
|
626 |
|
public Set<Entry<String,Long>> getVejnavne(int postnr) { |
627 |
|
Map<String,Long> map = searchPostnrVejnavnGadeid.get(postnr); |
628 |
|
TreeMap<String,Long> newMap = new TreeMap<String,Long>(); |
629 |
|
for (Entry<String,Long> entry : map.entrySet() ) { |
630 |
|
newMap.put(entry.getKey(), entry.getValue()); |
631 |
|
} |
632 |
|
|
633 |
|
return newMap.entrySet(); |
634 |
|
} |
635 |
|
|
636 |
|
public Set<String> getHusnumre(long gadeid) { |
637 |
|
|
638 |
|
Map<String, Address> gade = searchGadeidentAdresser.get(gadeid); |
639 |
|
return new TreeSet<String>( gade.keySet() ); |
640 |
|
} |
641 |
|
|
642 |
|
public Address getAdresse(long gadeid, String husnr) { |
643 |
|
|
644 |
|
Map<String, Address> gade = searchGadeidentAdresser.get(gadeid); |
645 |
|
return gade.get(husnr); |
646 |
|
|
647 |
|
} |
648 |
|
|
649 |
} |
} |