1  | static File newFile(File base, S... names) {
 | 
2  | for (S name : names) base = new File(base, name);  | 
3  | ret base;  | 
4  | }  | 
5  | |
6  | static File newFile(S name) {
 | 
7  | ret name == null ? null : new File(name);  | 
8  | }  | 
9  | |
10  | static File newFile(S base, S... names) {
 | 
11  | ret newFile(newFile(base), names);  | 
12  | }  | 
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: | 1511 / 1666 | 
| Version history: | 2 change(s) | 
| Referenced in: | [show references] |