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

8
LINES

< > BotCompany Repo | #1022120 // cacheVarsOfAllMainClasses

JavaX fragment (include)

// cache object -> (main class, field name)
static MultiMap<O, Pair<O, S>> cacheVarsOfAllMainClasses() {
  MultiMap<O, Pair<O, S>> mm = identityMultiMap();
  for (O mc : allMainClasses())
    for (S field : allCacheVars(mc))
      mm.put(get(mc, field), pair(mc, field));
  ret mm;
}

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: #1022120
Snippet name: cacheVarsOfAllMainClasses
Eternal ID of this version: #1022120/1
Text MD5: f483d2419df7533fe904aa738fbd5d90
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-07 23:31:10
Source code size: 290 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 283 / 310
Referenced in: [show references]