본문 바로가기 메뉴 바로가기

eblo

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

eblo

검색하기 폼
  • 분류 전체보기 (146)
    • Spring Frameworks (27)
      • RESTful Service (4)
      • Thymeleaf (4)
    • Java (8)
    • chatGPT (0)
    • UI(Front-End) (18)
      • 그리드 (11)
      • vuejs (1)
      • javascript 일반 (1)
      • css (0)
    • DB (5)
    • Server & System (0)
    • Design Pattern & Refactorin.. (0)
    • 잡동사니 (5)
      • 개인정보보안 (2)
    • 리팩토링(스프링기반) (13)
    • 프로젝트 (1)
    • Working log (14)
    • Test & ProtoTyping (2)
    • 엘라스틱서치 (2)
    • 참고링크 (2)
    • study (18)
      • springboot (18)
    • go (29)
  • 방명록

listToMap (1)
Map 전체 내용을 읽을 때 Key, Value를 모두 사용한다면 "entrySet"을 사용하라

Iterate over the "entrySet" instead of the "keySet". Map에 있는 키 값을 꺼내서 루프를 돌리는데 만약 key값 이외 value도 필요하다며 keySet을 사용하지 말고 entrySet을 사용하라. "entrySet()" should be iterated when both the key and value are needed (squid:S2864) Code smell Major When only the keys from a map are needed in a loop, iterating the keySet makes sense. But when both the key and the value are needed, it's more efficient to iter..

리팩토링(스프링기반) 2019. 1. 8. 09:06
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 주니
TAG
  • sample
  • mapToList
  • RESTful
  • 스프링
  • 샘플
  • ag grid
  • oracle
  • AG-GRID
  • 스프링부트
  • UI
  • 타임리프
  • mybatis
  • SHEETJS
  • lombok
  • 설정
  • example
  • spring
  • 그리드
  • springboot
  • 엑셀
  • cache
  • restful서비스
  • 예제
  • Spring Boot
  • Javascript
  • thymeleaf
  • listToMap
  • REST
  • 메시지
  • java
more
«   2025/12   »
일 월 화 수 목 금 토
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 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바