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).

scope agiBlue_chessPieceImages_loadedMultiMap.

static ThreadLocal<MultiMap<S, BufferedImage>> #cache = new ThreadLocal;

static MultiMap<S, BufferedImage> agiBlue_chessPieceImages_loadedMultiMap() {
  ret agiBlue_chessPieceImages_loadedMultiMap(null);
}

static MultiMap<S, BufferedImage> agiBlue_chessPieceImages_loadedMultiMap(Bool lightSquares) {
  if (cache! != null) ret cache!;
  MultiMap<S, BufferedImage> mm = ciMultiMap();
  for (S imageID, piece : unpair chessPieceImagesFromAGIBlue(lightSquares)) {
    mm.put(piece, loadImage2(imageID));
  }
  ret mm;
}

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: 253 / 378
Version history: 6 change(s)
Referenced in: [show references]