(Tech other)
| 179 | } |
| 180 | |
| 181 | public boolean is(Tech other) { |
| 182 | if (other == null) { |
| 183 | return false; |
| 184 | } |
| 185 | |
| 186 | for (Tech t = this; t != null; t = t.parent) { |
| 187 | if (other == t) { |
| 188 | return true; |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | return false; |
| 193 | } |
| 194 | |
| 195 | public Tech getParent() { |
| 196 | return parent; |
no outgoing calls