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


< > BotCompany Repo | #1002042 - keys function

JavaX fragment (include)

static <A, B> Set<A> keys(Map<A, B> map) {
  ret map == null ? new HashSet : map.keySet();

// convenience shortcut for keys_gen
static Set keys(O map) {
  ret keys((Map) map);

ifclass MultiSet
  static <A> Set<A> keys(MultiSet<A> ms) {
    ret ms.keySet();

ifclass MultiMap
  static <A, B> Set<A> keys(MultiMap<A, B> mm) {
    ret mm.keySet();

ifclass MultiSetMap
  static <A, B> Set<A> keys(MultiSetMap<A, B> mm) {
    ret mm.keySet();

ifclass SmallestListMultiMap
  static <A, B> Set<A> keys(SmallestListMultiMap<A, B> mm) {
    ret mm.keySet();

download  show line numbers  debug dex  old transpilations   

Travelled to 20 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dpqxeycirhfy, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv, yanjaxplzisb

No comments. add comment

Snippet ID: #1002042
Snippet name: keys function
Eternal ID of this version: #1002042/7
Text MD5: 5a44db6881fb884534695b377aa52fab
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-13 18:50:39
Source code size: 627 bytes / 32 lines
Pitched / IR pitched: No / No
Views / Downloads: 598 / 2848
Version history: 6 change(s)
Referenced in: [show references]