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

3
LINES

< > BotCompany Repo | #1026560 // mapToField - map list to objects of a class with one field set

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

Libraryless. Click here for Pure Java version (2410L/15K).

static <A> L<A> mapMethodLike mapToField(S field, Class<A> c, Iterable l) {
  ret map(l, value -> nu(c, field, value));
}

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: #1026560
Snippet name: mapToField - map list to objects of a class with one field set
Eternal ID of this version: #1026560/1
Text MD5: c128da77fa726f37e4fdc41a21a0d1b7
Transpilation MD5: 4da6d147dd673f4e20e8cbb9284907e3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-12 20:16:11
Source code size: 123 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 302 / 410
Referenced in: [show references]