static int gazelle_historyLevelRequired(RuleEngine2.Rule rule) { if (rule == null) ret 0; int n = 0; new Matches m; for (GRuleLine l : unnull(rule.insWithType)) if (eq(l.type, "standard")) n = max(n, 1); else if (startsWith(l.type, "history-", m)) n = max(n, parseIntOpt(m.rest())); ret n; }
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: | #1022487 |
Snippet name: | gazelle_historyLevelRequired |
Eternal ID of this version: | #1022487/4 |
Text MD5: | 0c677b09356fa230718d3969b3ecac79 |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-21 10:03:21 |
Source code size: | 331 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 263 / 322 |
Version history: | 3 change(s) |
Referenced in: | [show references] |