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

15
LINES

< > BotCompany Repo | #1020919 // getIntOrMinus1

JavaX fragment (include)

static int getIntOrMinus1(L l, int i) {
  ret toIntOrMinus1(get(l, i));
}

static int getIntOrMinus1(Map map, O key) {
  ret toIntOrMinus1(mapGet(map, key));
}

static int getIntOrMinus1(O o, S field) {
  ret toIntOrMinus1(getOpt(o, field);
}

static int mapMethodLike getIntOrMinus1(S field, O o) {
  ret getIntOrMinus1(o, field);
}

Author comment

Began life as a copy of #1008949

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020919
Snippet name: getIntOrMinus1
Eternal ID of this version: #1020919/3
Text MD5: 7af875b4f19b33c2535c0c9ab07f4886
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-10 16:11:08
Source code size: 347 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 218 / 258
Version history: 2 change(s)
Referenced in: [show references]