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

7
LINES

< > BotCompany Repo | #1005404 // getLong - getOpt with cast to long (or 0)

JavaX fragment (include)

1  
static long getLong(O o, S field) {
2  
  ret toLong(getOpt(o, field));
3  
}
4  
5  
static long mapMethodLike getLong(S field, O o) {
6  
  ret getLong(o, field);
7  
}

Author comment

Began life as a copy of #1001954

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: #1005404
Snippet name: getLong - getOpt with cast to long (or 0)
Eternal ID of this version: #1005404/2
Text MD5: b5bd164ae9742cbe07337f2d6d3691fe
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-23 11:26:51
Source code size: 153 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 695 / 712
Version history: 1 change(s)
Referenced in: [show references]