Mercurial > hg > Members > you > TreeVNC
comparison src/treeVnc/CapsContainer.java @ 20:20c53b836ff8
delete warning
author | one |
---|---|
date | Fri, 13 Jan 2012 16:22:58 +0900 |
parents | 578ea14c95e9 |
children | 810c53d66376 |
comparison
equal
deleted
inserted
replaced
19:3faae4215cb3 | 20:20c53b836ff8 |
---|---|
29 class CapsContainer { | 29 class CapsContainer { |
30 | 30 |
31 // Public methods | 31 // Public methods |
32 | 32 |
33 public CapsContainer() { | 33 public CapsContainer() { |
34 infoMap = new Hashtable(64, (float)0.25); | 34 infoMap = new Hashtable<Integer,CapabilityInfo>(64, (float)0.25); |
35 orderedList = new Vector(32, 8); | 35 orderedList = new Vector<Integer>(32, 8); |
36 } | 36 } |
37 | 37 |
38 public void add(CapabilityInfo capinfo) { | 38 public void add(CapabilityInfo capinfo) { |
39 Integer key = new Integer(capinfo.getCode()); | 39 Integer key = new Integer(capinfo.getCode()); |
40 infoMap.put(key, capinfo); | 40 infoMap.put(key, capinfo); |
96 return code; | 96 return code; |
97 } | 97 } |
98 | 98 |
99 // Protected data | 99 // Protected data |
100 | 100 |
101 protected Hashtable infoMap; | 101 protected Hashtable<Integer,CapabilityInfo> infoMap; |
102 protected Vector orderedList; | 102 protected Vector<Integer> orderedList; |
103 } | 103 } |
104 | 104 |