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

11
LINES

< > BotCompany Repo | #1028733 // Cluster - set of synonyms (case-insensitive strings) plus a global ID

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

Libraryless. Click here for Pure Java version (3220L/20K).

1  
sclass Cluster extends HasGlobalID {
2  
  Set<S> synonyms = linkedCISet();
3  
  
4  
  void addSynonym(S s) {
5  
    synonyms.add(s);
6  
  }
7  
  
8  
  S firstSynonym() { ret first(synonyms); }
9  
  
10  
  toString { ret curly(joinWithSlash(synonyms)); }
11  
}

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: #1028733
Snippet name: Cluster - set of synonyms (case-insensitive strings) plus a global ID
Eternal ID of this version: #1028733/6
Text MD5: 4db37d7b8d5b444acc20a0931759e42a
Transpilation MD5: 4dd1f4fdd8fbe3acef87a177280b965d
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-07 00:11:33
Source code size: 237 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 228 / 546
Version history: 5 change(s)
Referenced in: [show references]