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).

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

Author comment

Began life as a copy of #1020222

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, 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: 29 / 61
Referenced in: [show references]

Formerly at http://tinybrain.de/1028180 & http://1028180.tinybrain.de