(int type)
| 118 | } |
| 119 | |
| 120 | public Group getGroup(int type) { |
| 121 | for (Enumeration e = groups.elements(); e.hasMoreElements();) { |
| 122 | Group grp = (Group) e.nextElement(); |
| 123 | if (grp.type == type) { |
| 124 | return grp; |
| 125 | } |
| 126 | } |
| 127 | return null; |
| 128 | } |
| 129 | |
| 130 | public Enumeration elements() { |
| 131 | return groups.elements(); |
no test coverage detected