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

7
LINES

< > BotCompany Repo | #1030732 // toTokCondition

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

Libraryless. Click here for Pure Java version (40L/1K).

static TokCondition toTokCondition(ITokCondition condition) {
  ret condition == null ?: condition instanceof TokCondition ? (TokCondition) condition : new TokCondition {
    public bool get(L<S> tok, int i) {
      ret condition.get(tok, i);
    }
  };
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030732
Snippet name: toTokCondition
Eternal ID of this version: #1030732/3
Text MD5: c76cdc998c4c1e68c7dc9fc7bda983fd
Transpilation MD5: 8e97f7237a1a7370e22f39e569f1bb66
Author: stefan
Category: javax / tokenizing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-01 23:24:59
Source code size: 261 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 275
Version history: 2 change(s)
Referenced in: [show references]