Libraryless. Click here for Pure Java version (40L/1K).
1 | sclass HasIndex implements Comparable<HasIndex> { |
2 | int idx; |
3 | |
4 | *() {} |
5 | *(int *idx) {} |
6 | |
7 | public int compareTo(HasIndex h) { |
8 | ret idx-h.idx; |
9 | } |
10 | |
11 | final int get() { ret idx; } |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025800 |
Snippet name: | HasIndex - base class with an int index |
Eternal ID of this version: | #1025800/6 |
Text MD5: | 5be22f5f0fa4d09269919d066cca6ed0 |
Transpilation MD5: | e10710cb07c47b84ccdf7c845eac964a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-01 19:48:17 |
Source code size: | 199 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 296 / 679 |
Version history: | 5 change(s) |
Referenced in: | [show references] |