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

7
LINES

< > BotCompany Repo | #1026516 // exchangeRatesAgainstEuro

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

Libraryless. Click here for Pure Java version (3842L/25K).

1  
static Map<S, Double> exchangeRatesAgainstEuro() {
2  
  File f = exchangeRatesAgainstEuro_cacheFile();
3  
  if (fileOlderThanNDays(f, 1))
4  
    ret exchangeRatesAgainstEuro_fresh();
5  
  else
6  
    ret (Map) jsonDecodeMap(loadTextFile(f)).get("rates");
7  
}

Author comment

Began life as a copy of #1026513

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026516
Snippet name: exchangeRatesAgainstEuro
Eternal ID of this version: #1026516/2
Text MD5: a717d9ec6b455d52f02edc1c65b416a8
Transpilation MD5: efb90799b6ff5fadd414b32e5a4b82ec
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-08 20:09:44
Source code size: 247 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 246 / 324
Version history: 1 change(s)
Referenced in: [show references]