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

10
LINES

< > BotCompany Repo | #1026801 // paramsToAbstractActions

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

Libraryless. Click here for Pure Java version (2137L/14K).

static L<AbstractAction> paramsToAbstractActions(O... params) {
  new L<AbstractAction> l;
  for (int i = 0; i+1 < l(params); i += 2) {
    S text = cast params[i];
    Runnable action = cast params[i+1];
    if (nempty(text))
      l.add(abstractAction(text, action));
  }
  ret l;
}

Author comment

Began life as a copy of #1019464

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026801
Snippet name: paramsToAbstractActions
Eternal ID of this version: #1026801/1
Text MD5: 3309aa14ef054e039544755a7139c416
Transpilation MD5: 4994449c1fca7c0306a4388f88e29f46
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-23 16:25:38
Source code size: 293 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 174 / 259
Referenced in: [show references]