1 | static class U implements Comparable<U> {
|
2 | byte[] data; |
3 | |
4 | *() {}
|
5 | *(byte[] *data) {}
|
6 | *(S s) { data = toUtf8(s); }
|
7 | |
8 | toString { ret fromUtf8(data); }
|
9 | |
10 | public int compareTo(U u) {
|
11 | ret u == null ? 1 : toString().compareTo(u.toString()); |
12 | } |
13 | } |
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: | #1008018 |
| Snippet name: | U - string stored as UTF-8 |
| Eternal ID of this version: | #1008018/5 |
| Text MD5: | b7a8fa98669e4a65bf3beac894f5eb65 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-20 18:41:21 |
| Source code size: | 269 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 717 / 1384 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |