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

18
LINES

< > BotCompany Repo | #1017976 // VarMap - with $x <-> $X [dev.]

JavaX fragment (include)

1  
sclass VarMap extends AbstractMap<S> {
2  
  TreeMap<A, B> base = ciMap();
3  
4  
  public B get(Object key) {
5  
    B b = additions.get(key);
6  
    if (b != null) return b;
7  
    return base.get(key);
8  
  }
9  
  
10  
  public B put(S key, S value) {
11  
    
12  
    ret base.put(key, value);
13  
  }
14  
  
15  
  public Set<Map.Entry<S, S>> entrySet() {
16  
    ret base.entrySet();
17  
  }
18  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017976
Snippet name: VarMap - with $x <-> $X [dev.]
Eternal ID of this version: #1017976/1
Text MD5: f7d87407df4d6ea2519055fe70b650da
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-23 22:38:17
Source code size: 358 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 292
Referenced in: [show references]