(token)
| 345 | } |
| 346 | |
| 347 | stringify(token) { |
| 348 | // Get the underlying MutableLong |
| 349 | const value = token.getValue(); |
| 350 | // We need a way to uniquely represent a token, it doesn't have to be the decimal string representation |
| 351 | // Using the uint16 avoids divisions and other expensive operations on the longs |
| 352 | return value.getUint16(0) + ',' + value.getUint16(1) + ',' + value.getUint16(2) + ',' + value.getUint16(3); |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | /** |