Revision 869c3f85
Added by Andreas Kohlbecker almost 8 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dto/ClassificationLookupDTO.java | ||
---|---|---|
12 | 12 |
import java.util.Collection; |
13 | 13 |
import java.util.HashMap; |
14 | 14 |
import java.util.HashSet; |
15 |
import java.util.List; |
|
15 | 16 |
import java.util.Map; |
16 | 17 |
import java.util.Set; |
17 | 18 |
|
... | ... | |
26 | 27 |
public class ClassificationLookupDTO { |
27 | 28 |
|
28 | 29 |
private final Map<Integer, Integer> taxonIdToParentId = new HashMap<Integer, Integer>(); |
29 |
private final Map<Rank,Collection<Integer>> taxonIdByRank = new HashMap<Rank, Collection<Integer>>();
|
|
30 |
private final Map<Integer,Collection<Integer>> childTaxonMap = new HashMap<Integer,Collection<Integer>>();
|
|
30 |
private final Map<Rank,Set<Integer>> taxonIdByRank = new HashMap<Rank, Set<Integer>>();
|
|
31 |
private final Map<Integer,Set<Integer>> childTaxonMap = new HashMap<Integer,Set<Integer>>();
|
|
31 | 32 |
private Classification classification = null; |
32 | 33 |
|
33 | 34 |
/** |
... | ... | |
40 | 41 |
/** |
41 | 42 |
* @return the taxonIdByRank |
42 | 43 |
*/ |
43 |
public Map<Rank, Collection<Integer>> getTaxonIdByRank() {
|
|
44 |
public Map<Rank, Set<Integer>> getTaxonIdByRank() {
|
|
44 | 45 |
return taxonIdByRank; |
45 | 46 |
} |
46 | 47 |
|
47 | 48 |
/** |
48 | 49 |
* @return the childTaxonMap |
49 | 50 |
*/ |
50 |
public Map<Integer, Collection<Integer>> getChildTaxonMap() {
|
|
51 |
public Map<Integer, Set<Integer>> getChildTaxonMap() {
|
|
51 | 52 |
return childTaxonMap; |
52 | 53 |
} |
53 | 54 |
|
... | ... | |
94 | 95 |
} |
95 | 96 |
} |
96 | 97 |
|
98 |
/** |
|
99 |
* @param ranks |
|
100 |
*/ |
|
101 |
public void filter(List<Rank> ranks) { |
|
102 |
for(Rank rank : ranks) { |
|
103 |
dropRank(rank); |
|
104 |
} |
|
105 |
} |
|
106 |
|
|
97 | 107 |
} |
Also available in: Unified diff
solving multiple problems in TransmissionEngine