comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/StateEngine.java @ 272:2ce31a9414ff

Use generics more precisely artifacts/trunk@2061 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 07 Jun 2011 11:06:54 +0000
parents 9ece61d918b1
children 16ab243507e0
comparison
equal deleted inserted replaced
271:aa9f2f5ff032 272:2ce31a9414ff
19 /** 19 /**
20 * A map that contains the states of the artifacts. The key of this map is 20 * A map that contains the states of the artifacts. The key of this map is
21 * the name of an artifact, its value is a list of all states the artifact 21 * the name of an artifact, its value is a list of all states the artifact
22 * can reach. 22 * can reach.
23 */ 23 */
24 protected Map<String, List> states; 24 protected Map<String, List<State>> states;
25 25
26 26
27 /** 27 /**
28 * A map that contains all existing states. The key of this map is the ID of 28 * A map that contains all existing states. The key of this map is the ID of
29 * the state, its value is the state itself. 29 * the state, its value is the state itself.
33 33
34 /** 34 /**
35 * The default constructor. 35 * The default constructor.
36 */ 36 */
37 public StateEngine() { 37 public StateEngine() {
38 states = new HashMap<String, List>(); 38 states = new HashMap<String, List<State>>();
39 allStates = new HashMap<String, State>(); 39 allStates = new HashMap<String, State>();
40 } 40 }
41 41
42 42
43 /** 43 /**

http://dive4elements.wald.intevation.org