(data: TableRowType)
| 246 | val = val.getInternalID(); |
| 247 | } else if (val instanceof Structure) { |
| 248 | val = val.getCharacter(true); |
| 249 | } else { |
| 250 | // convert |
| 251 | const row = field.clone() as any; |
| 252 | row.set(val.get()); |
| 253 | val = row.get(); |
| 254 | } |
| 255 | } else { |
| 256 | throw new Error("HashedTable, buildHashFromSimple, unexpected type"); |
| 257 | } |
| 258 | |
| 259 | hash += k + ":" + val + "|"; |
| 260 | } |
| 261 | return hash; |
| 262 | } |
| 263 | |
| 264 | public read(hash: string): TableRowType | undefined { |
| 265 | return this.value[hash]; |
| 266 | } |
| 267 |
no test coverage detected