원래 코드
List<ScreenSpaceSequenceStatusResponse> screenSpaceSequenceStatusResponseList = new ArrayList<>();
for(ClientScreenSequenceResponse screenSequence: screenSequenceList) {
screenSpaceSequenceStatusResponseList.add(makeScreenSpaceSequenceStatusResponseObject(screenSequence));
}
stream map 사용한 코드
List<ScreenSpaceSequenceStatusResponse> screenSpaceSequenceStatusResponseList = screenSequenceList.stream()
.map(this::makeScreenSpaceSequenceStatusResponseObject)
.toList();
@DateTimeFormat(pattern = "yyyyMMdd")
@Parameter(description = "일자", example = "20240527", required = false)
@RequestParam(value = "yearMonthDay", required = true)
@DateTimeFormat(pattern = "yyyyMMdd")
LocalDate yearMonthDay;
@JsonDeserialize(using = LocalDateDeserializer.class)
@JsonFormat(pattern = "yyyyMMdd")
@NotNull
@Schema(description="일자", example="20230402", nullable=false, type="20240611")
@JsonDeserialize(using = LocalDateDeserializer.class)
@JsonFormat(pattern = "yyyyMMdd")
private LocalDate yearMonthDay;