본문 바로가기

내가 당면한 문제와 해결방안

How to make a new list with a property of an object which is in another list

https://stackoverflow.com/questions/10975913/how-to-make-a-new-list-with-a-property-of-an-object-which-is-in-another-list

 

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());

나는 이렇게 사용했다.

잘 발라냈음.

영어로 잘 질문하기가 어렵다.

 

 

https://stackoverflow.com/questions/737244/java-map-a-list-of-objects-to-a-list-with-values-of-their-property-attributes

 

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

 

발라내기 여러개.

제네릭 쓰니 이렇게 좋은게 많습니다.

'내가 당면한 문제와 해결방안' 카테고리의 다른 글

elastiesearch doc upsert  (0) 2020.02.25
postgres 트리거 만들기  (0) 2020.02.25
elasticsearch envelope search in postgis  (0) 2020.02.21
sql 문  (2) 2020.02.03
postgresql create date column with default value  (0) 2020.01.30