Nillk dev blog

  • 홈
  • 태그
  • 글쓰기
  • Admin
개발자

Generic 1

[Java] Upper bounded wildcards

Upper Bounded Wildcards 변수에 대한 제한을 좀 느슨하게 하기 위해 upper bounded wildcard를 사용할 수 있다. 예를 들어, List, List, 그리고 List를 다루는 메소드를 작성하고 싶다고 해보자; 이건 upper bounded wildcard를 이용해 작성할 수 있다. upper-bounded wildcard를 선언하기 위해서는 wildcard character (‘?‘)를 사용하고, 그 다음 extends keyword를, 마지막으로 upper bound가 뒤따른다. 주의할 것은 이 문맥에서 extends는 일반적인 느낌의 “extends”(class에서 사용되는)와 “implements”(interface에서 사용되는) 둘 다 의미하는 것으로 사용한다. Nu..

Dev/Java 2016.12.28
1
더보기
프로필사진

개발자

  • 분류 전체보기 (46)
    • - (0)
    • Dev (43)
      • Algorithm (1)
      • Java (2)
      • Python (12)
      • Spring (2)
      • Eclipse (3)
      • Machine Learning (1)
      • Translation (9)
      • etc (13)
    • Dev books (3)

Tag

Eclipse, Environment Variables, Java, Scalatest, Yosemite, mac, Gatsby, Git, Programming for Everybody, Coursera, homebrew, translation, Python, linear regression, clean code, machine learning, System-rules, spring, tomcat, Tutorial,

최근글과 인기글

  • 최근글
  • 인기글
  • [Gatsby] Tutorial - 8. Preparing a site to go live 2019.08.14 13:04
  • [Gatsby] Tutorial - 7. Programmatically create pages from data 2019.08.14 12:59
  • [Gatsby] Tutorial - 6. Transformer plugins 2019.08.02 16:27
  • Ubuntu에서 ssl certificate verify failed 에러시 설정 (인증서 등록) 2016.07.15 01:05
  • [CentOS] rpm 을 이용해 gcc 수동 설치 2016.08.24 15:23
  • <Object>와 <? extends Object>의 차이 2019.06.26 21:37

최근댓글

  • 제가 이 글을 참고하여 블로그를 작성하였는데, 혹⋯

    긴가민가

  • 유익한정리글 감사합니다

    kyo

  • 도움이 되었어요

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

  • 2019/08
  • 2019/07
  • 2019/06
  • 2017/07

Calendar

«   2022/07   »
일 월 화 수 목 금 토
          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            

방문자수Total

84,556

  • Today : 1
  • Yesterday : 30

Copyright © Kakao Corp. All rights reserved.