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

12
LINES

< > BotCompany Repo | #1031842 // WithCount [int]

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

Libraryless. Click here for Pure Java version (3403L/19K).

sclass WithCount<A> extends Var<A> {
  int count;
  
  *() {}
  *(int *count, A value) { super(value); }
  *(A value) { super(value); }
  *(A value, int *count) { super(value); }
  
  int count() { ret count; }
  
  toString { ret super.toString() + appendBracketed(n2(count)); }
}

Author comment

Began life as a copy of #1026686

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031842
Snippet name: WithCount [int]
Eternal ID of this version: #1031842/1
Text MD5: ee79c48bc8b0df5c511d692e0e79420f
Transpilation MD5: 2f1c0e683d0d5b2882e8ad1b5b7b69cb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-16 05:17:58
Source code size: 292 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 143 / 290
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)