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

6
LINES

< > BotCompany Repo | #1031848 // PossiblyPureMap - a Map that may become a different instance after a put/remove

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

Libraryless. Click here for Pure Java version (31L/1K).

1  
sinterface PossiblyPureMap<A, B> extends Map<A, B> {
2  
  // these methods may return the map itself or a modified copy
3  
  
4  
  Map<A, B> put_possiblyPure(A key, B value);
5  
  Map<A, B> remove_possiblyPure(O key);
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031848
Snippet name: PossiblyPureMap - a Map that may become a different instance after a put/remove
Eternal ID of this version: #1031848/2
Text MD5: 1528b1e70b5d3b44af03d3abe7a2ccf5
Transpilation MD5: 1a25c8ee48575767b61557be93e0d297
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-16 06:24:47
Source code size: 212 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 157 / 312
Version history: 1 change(s)
Referenced in: [show references]