Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/berlinModelImport/TreeCreator.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.cdm.app.berlinModelImport; |
11 | 11 |
|
12 |
import java.util.HashMap; |
|
13 |
import java.util.Map; |
|
12 | 14 |
import java.util.UUID; |
13 | 15 |
|
14 | 16 |
import org.apache.log4j.Logger; |
... | ... | |
27 | 29 |
@SuppressWarnings("unused") |
28 | 30 |
private static final Logger logger = Logger.getLogger(TreeCreator.class); |
29 | 31 |
|
30 |
public static FeatureTree flatTree(UUID featureTreeUuid, MapWrapper<Feature> featureMap, Object[] featureKeyList){
|
|
32 |
public static FeatureTree flatTree(UUID featureTreeUuid, Map<Integer, Feature> featureMap, Object[] featureKeyList){
|
|
31 | 33 |
FeatureTree result = FeatureTree.NewInstance(featureTreeUuid); |
32 | 34 |
FeatureNode root = result.getRoot(); |
33 | 35 |
|
... | ... | |
46 | 48 |
* @param args |
47 | 49 |
*/ |
48 | 50 |
public static void main(String[] args) { |
49 |
MapWrapper<Feature> map = new MapWrapper<Feature>(null);
|
|
51 |
Map<Integer, Feature> map = new HashMap<Integer, Feature>(null);
|
|
50 | 52 |
map.put(1, Feature.DISTRIBUTION()); |
51 | 53 |
map.put(2, Feature.ECOLOGY()); |
52 | 54 |
|
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk