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

7
LINES

< > BotCompany Repo | #1036490 // havingFieldNotNull

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

Transpiled version (9963L) is out of date.

static <A> L<A> havingFieldNotNull(Iterable<A> l, S field) {
  ret filter(l, o -> getOpt(o, field) != null);
}

static <A> L<A> havingFieldNotNull(S field, Iterable<A> l) {
  ret havingFieldNotNull(l, field);
}

Author comment

Began life as a copy of #1036301

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036490
Snippet name: havingFieldNotNull
Eternal ID of this version: #1036490/2
Text MD5: 80100cc34cd708e1b98e807f2628bb90
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-20 17:38:53
Source code size: 212 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 70 / 99
Version history: 1 change(s)
Referenced in: [show references]