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

6
LINES

< > BotCompany Repo | #1025626 // countValuesWhere_sync - count map values that match a data condition (fields+values)

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

Libraryless. Click here for Pure Java version (2168L/14K).

static int countValuesWhere_sync(Map map, O... data) {
  if (map == null) ret 0;
  synchronized(map) {
    ret countWhere(values(map), data);
  }
}

Author comment

Began life as a copy of #1024195

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025626
Snippet name: countValuesWhere_sync - count map values that match a data condition (fields+values)
Eternal ID of this version: #1025626/1
Text MD5: 7dc7612b0acfef7ee38d1651c9ff7a50
Transpilation MD5: b3fffe5dd13cbe666274555be86da499
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-10 00:52:08
Source code size: 152 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 227 / 315
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)