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)

static long getLong(O o, S field) {
  ret toLong(getOpt(o, field));
}

static long mapMethodLike getLong(S field, O o) {
  ret getLong(o, field);
}

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: 696 / 713
Version history: 1 change(s)
Referenced in: #1005405 - getBool - getOpt with cast to bool (or false)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025306 - getList - getOpt with cast to L