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

12
LINES

< > BotCompany Repo | #1008474 // newFile - extended version of new File(...) - concatenates multiple parts

JavaX fragment (include)

static File newFile(File base, S... names) {
  for (S name : names) base = new File(base, name);
  ret base;
}

static File newFile(S name) {
  ret name == null ? null : new File(name);
}

static File newFile(S base, S... names) {
  ret newFile(newFile(base), names);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, ofpaelxlmzfo, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1008474
Snippet name: newFile - extended version of new File(...) - concatenates multiple parts
Eternal ID of this version: #1008474/3
Text MD5: a8b4c8b2a3fb3e8929fd6df0791d5f6e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-30 15:39:53
Source code size: 280 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 794 / 947
Version history: 2 change(s)
Referenced in: [show references]