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

8
LINES

< > BotCompany Repo | #1031623 // filesWithSize - biggest first

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

Libraryless. Click here for Pure Java version (2966L/18K).

static Map<File, Long> filesWithSize(Iterable<File> files) {
  new Map<File, Long> map;
  fOr ping (File f : files) {
    if (isFile(f))
      map.put(f, fileSize(f));
  }
  ret mapSortedByValueDesc(map);
}

Author comment

Began life as a copy of #1020814

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031623
Snippet name: filesWithSize - biggest first
Eternal ID of this version: #1031623/1
Text MD5: 35532e96a9be8dcd0fa8de4b341e800b
Transpilation MD5: 9b36ef9654e80cc57ed57ce40cf873ae
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-22 12:25:22
Source code size: 213 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 75 / 102
Referenced in: [show references]