반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- chart.js
- VPN
- redis
- 도커
- codedeploy
- AWS CI/CD 구축하기
- PostgreSQL
- Airflow
- codedeploy error
- Kafka
- Python
- codepipeline
- bootstrap
- COALESCE
- aws
- Spring
- Flux
- or some instances in your deployment group are experiencing problems.
- java bigdecimal
- aws cicd
- chartjs
- Jenkins
- Spring Error
- SQL
- IntelliJ
- JavaScript
- node
- codebuild
- kubeflow
- docker
Archives
- Today
- Total
목록ava stream 으로 sum 구하기 (1)
Small Asteroid Blog
[java] java stream 으로 합계(sum) 구하기
Integer memberId = 1; TotalDto dto = TotalDto.builder() .contribution1(contributionDto.stream().mapToLong(ContributionDto::getTotalAmount).sum()) .contribution2(contributionDto.stream().filter(x -> x.getId().equals(memberId)).mapToLong(ContributionDto::getTotalAmount).sum()) .build();
백엔드/Java
2023. 1. 12. 09:21