Warning: session_start(): open(/var/lib/php/sessions/sess_7d0hcpi32j3ne6h5ktbcliarp9, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
javaTokWithAllBrackets_cached [1028078]

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

11
LINES

< > BotCompany Repo | #1028078 // javaTokWithAllBrackets_cached

JavaX fragment (include)

scope javaTokWithAllBrackets_cached.

static Map<S, LS> #cache = synchronizedMRUCache(defaultTokenizerCacheSize());

static L<S> javaTokWithAllBrackets_cached(S s) {
  LS tok = cache.get(s);
  if (tok == null) cache.put(s, tok = javaTokWithAllBrackets(s));
  ret tok;
}

end scope

Author comment

Began life as a copy of #1025298

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028078
Snippet name: javaTokWithAllBrackets_cached
Eternal ID of this version: #1028078/1
Text MD5: 3b6e9343ead76687cc7a4fc48984c1ec
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-17 14:45:50
Source code size: 290 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 750 / 789
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)