Transpiled version (55L) is out of date.
1 | // for the version with MasterSymbol (used WAY back in "Smart Bot"!) see #1010608 |
2 | |
3 | sclass Symbol implements CharSequence {
|
4 | S text; |
5 | |
6 | *() {}
|
7 | *(S *text, bool dummy) {} // weird signature to prevent accidental calling
|
8 | |
9 | public int hashCode() { ret _hashCode(text); }
|
10 | toString { ret text; }
|
11 | public bool equals(O o) {
|
12 | ret this == o; |
13 | } |
14 | |
15 | // implementation of CharSequence methods |
16 | |
17 | public int length() { ret text.length(); }
|
18 | public char charAt(int index) { ret text.charAt(index); }
|
19 | public CharSequence subSequence(int start, int end) {
|
20 | ret text.substring(start, end); |
21 | } |
22 | } |
Began life as a copy of #1010608
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1012685 |
| Snippet name: | class Symbol - a string comparable with "==" [v1] |
| Eternal ID of this version: | #1012685/9 |
| Text MD5: | e78354184bfab2644253f4e078f213eb |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-23 05:27:45 |
| Source code size: | 621 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1215 / 1450 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |