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

8
LINES

< > BotCompany Repo | #1029628 // SecretValue - generic record

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

Libraryless. Click here for Pure Java version (2608L/16K).

1  
// Note: doesn't have value-semantics
2  
// i.e. eq(SecretValue(x), SecretValue(x)) will be false
3  
sclass SecretValue<A> extends Var<A> {
4  
  *() {}
5  
  *(A a) { super(a); }
6  
  
7  
  toString { ret "Secret value"; }
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029628
Snippet name: SecretValue - generic record
Eternal ID of this version: #1029628/3
Text MD5: 52d8948652440d9c2d3eb7e818a1dc45
Transpilation MD5: 757b07cfab273c36de3d364ad747dbd9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-07 18:26:22
Source code size: 212 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 282 / 556
Version history: 2 change(s)
Referenced in: [show references]