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

5
LINES

< > BotCompany Repo | #1003651 // toFile

JavaX fragment (include)

static File toFile(O o) {
  if (o instanceof File) ret (File) o;
  if (o instanceof S) ret new File((S) o);
  fail("Not a file: " + o);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003651
Snippet name: toFile
Eternal ID of this version: #1003651/1
Text MD5: ac53dca25bc5d76fb9f6ff3d608de1b9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-25 00:19:04
Source code size: 141 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 627 / 641
Referenced in: [show references]