Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1025800 // HasIndex - base class with an int index

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (40L/1K).

sclass HasIndex implements Comparable<HasIndex> {
  int idx;
  
  *() {}
  *(int *idx) {}
  
  public int compareTo(HasIndex h) {
    ret idx-h.idx;
  }
  
  final int get() { ret idx; }
}

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: 295 / 678
Version history: 5 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)