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

15
LINES

< > BotCompany Repo | #1031805 // getLongOpt - very tolerant

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3037L/17K).

1  
static long getLongOpt(L c, int i) {
2  
  ret toLongOpt(get(c, i));
3  
}
4  
5  
static long getLongOpt(Map map, O key) {
6  
  ret toLongOpt(mapGet(map, key));
7  
}
8  
9  
static long getLongOpt(O o, S field, long defaultValue default 0) {
10  
  ret toLongOpt(getOpt(o, field), defaultValue);
11  
}
12  
13  
static long mapMethodLike getLongOpt(S field, O o, long defaultValue default 0) {
14  
  ret getLongOpt(o, field, defaultValue);
15  
}

Author comment

Began life as a copy of #1031604

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031805
Snippet name: getLongOpt - very tolerant
Eternal ID of this version: #1031805/3
Text MD5: c547a8331c72c537bba41c2a9cc31150
Transpilation MD5: 50afdfc3b07f9c9d166c8fab3180288b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-01 20:12:23
Source code size: 406 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 242
Version history: 2 change(s)
Referenced in: [show references]