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

4
LINES

< > BotCompany Repo | #1028180 // msMostPopularDuplicate

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

Libraryless. Click here for Pure Java version (2980L/18K).

1  
static <A> A msMostPopularDuplicate(MultiSet<A> ms) {
2  
  A a = msMostPopularEntry(ms);
3  
  ret a != null && ms.get(a) > 1 ? a : null;
4  
}

Author comment

Began life as a copy of #1020222

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: #1028180
Snippet name: msMostPopularDuplicate
Eternal ID of this version: #1028180/1
Text MD5: 389e6134128ad2fa0952dd393104cc39
Transpilation MD5: a32aa0c02504c6347f80cc32ae25ea0b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-25 14:16:53
Source code size: 135 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 197 / 295
Referenced in: [show references]