GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Support Iterable interface as an input · Issue #3376 · mapstruct/mapstruct Closed Labels Milestone DescriptionUse caseWe are using records with collections defined as record B ( String value; ) {} record A ( Iterable<B> listOfB ) {} class C { List<String> listOfB } @Mapper interface Mapper { C mapAtoC(A input); default String mapBToSting(B in) { return in.value(); } } Generated Codeinterface MapperImpl { public C mapAtoC(A input) { .... C c = new C(); List<String> listOfB = StreamSupport.stream(labels.spliterator(), false).map(this::mapBToSting).toList(); c.setListOfB(listOfB); .... } } Possible workaroundsCurrently I need to create such functions manually MapStruct Version1.5.5.Final Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |