Libraryless. Click here for Pure Java version (17205L/104K).
| 1 | // only works within a module | 
| 2 | sclass StandardClasses is AutoCloseable {
 | 
| 3 | volatile SS map; | 
| 4 | AutoCloseable updater; | 
| 5 | |
| 6 |   *() {  
 | 
| 7 |     updater = dm_onSnippetEdited(voidfunc(S id) {
 | 
| 8 | if (contains(standardClassesSnippetIDs(), fsI(id))) | 
| 9 | map = null; | 
| 10 | }); | 
| 11 | } | 
| 12 | |
| 13 | // name to snippetID | 
| 14 |   SS getMap() {
 | 
| 15 | if (map == null) map = standardClassesMap_uncached(); | 
| 16 | ret map; | 
| 17 | } | 
| 18 | |
| 19 |   public void close {
 | 
| 20 | dispose updater; | 
| 21 | } | 
| 22 | } | 
Began life as a copy of #1032676
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1032678 | 
| Snippet name: | StandardClasses | 
| Eternal ID of this version: | #1032678/4 | 
| Text MD5: | a490e3e90428abe973fd7487b48a884e | 
| Transpilation MD5: | 585fe5b7ca8ef61437506f9328313a85 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2022-01-25 18:10:03 | 
| Source code size: | 458 bytes / 22 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 425 / 614 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |