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

16
LINES

< > BotCompany Repo | #1024717 // agiBlue_chessPieceImages_loadedMultiMap

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

Libraryless. Click here for Pure Java version (5025L/34K).

1  
scope agiBlue_chessPieceImages_loadedMultiMap.
2  
3  
static ThreadLocal<MultiMap<S, BufferedImage>> #cache = new ThreadLocal;
4  
5  
static MultiMap<S, BufferedImage> agiBlue_chessPieceImages_loadedMultiMap() {
6  
  ret agiBlue_chessPieceImages_loadedMultiMap(null);
7  
}
8  
9  
static MultiMap<S, BufferedImage> agiBlue_chessPieceImages_loadedMultiMap(Bool lightSquares) {
10  
  if (cache! != null) ret cache!;
11  
  MultiMap<S, BufferedImage> mm = ciMultiMap();
12  
  for (S imageID, piece : unpair chessPieceImagesFromAGIBlue(lightSquares)) {
13  
    mm.put(piece, loadImage2(imageID));
14  
  }
15  
  ret mm;
16  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024717
Snippet name: agiBlue_chessPieceImages_loadedMultiMap
Eternal ID of this version: #1024717/7
Text MD5: 4916c6ad77b40a34a0a5688206058149
Transpilation MD5: 93e07e85b6158849e3be374a1b71c42c
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-29 17:41:30
Source code size: 581 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 189 / 296
Version history: 6 change(s)
Referenced in: [show references]