내가 당면한 문제와 해결방안
How to make a new list with a property of an object which is in another list
한만큼
2020. 2. 24. 10:33
How to make a new list with a property of an object which is in another list
Imagine that I have a list of certain objects: List And I need to generate another list including the ids of Students in the above list: List Avoiding using a loo...
stackoverflow.com
올바른 질문과
깔쌈한 답변
List<Map> jsonnList = test.stream().map(ExpediaRegionUnion::getJsonn).collect(Collectors.toList());
나는 이렇게 사용했다.
잘 발라냈음.
영어로 잘 질문하기가 어렵다.
Java - map a list of objects to a list with values of their property attributes
I have the ViewValue class defined as follows: class ViewValue { private Long id; private Integer value; private String description; private View view; private Double defaultFeeRate; // getters ...
stackoverflow.com
발라내기 여러개.
제네릭 쓰니 이렇게 좋은게 많습니다.