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

7
LINES

< > BotCompany Repo | #1022361 // combinedMap - uses CombinedMap (virtual union with limited methods)

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

Libraryless. Click here for Pure Java version (1606L/11K).

static <A, B> Map<A, B> combinedMap(Map<A, B>... maps) {
  ret CombinedMap(wrapAsList(maps));
}

static <A, B, C extends Map<A, B>> Map<A, B> combinedMap(Collection<C> maps) {
  ret l(maps) == 1 ? first(maps) : CombinedMap(maps);
}

Author comment

Began life as a copy of #1021318

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022361
Snippet name: combinedMap - uses CombinedMap (virtual union with limited methods)
Eternal ID of this version: #1022361/10
Text MD5: f90517f12171abe644b19775c7e79117
Transpilation MD5: 663f76175aa8feb57e125c41fd0efa61
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-24 19:37:14
Source code size: 237 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 298
Version history: 9 change(s)
Referenced in: [show references]