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   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

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: 291 / 260
Version history: 1 change(s)
Referenced in: [show references]