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

devbible

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

devbible

검색하기 폼
  • 전체보기 (356)
    • Tips (44)
    • News (32)
    • Event (10)
    • Travel (0)
    • Review (2)
    • Development (266)
    • etc (1)
  • 방명록

readOnlyList (1)
[Java] Read only List (UnModifiableList)

읽기전용으로 List를 생성함. List에 modify 가 일어나면 UnsupportedOperationException 이 발생 List list = new anyList(); // any list (ArrayList, LinkedList other..) list.add(any); List readOnlyList = java.util.Collections.unmodifiableList(list); readOnlyList.get(index); // OK readOnlyList.set(index, any); // throw UnsupportedOperationException readOnlyList.add(any); // throw UnsupportedOperationException readOnlyLis..

Development 2018. 2. 18. 15:07
이전 1 다음
이전 다음
최근에 올라온 글
글 보관함
Total
Today
Yesterday
TAG
  • dotnet
  • Linux
  • ubuntu
  • Eclipse
  • ListView
  • Java
  • CentOS
  • svn
  • 게임
  • redis
  • 티스토리 초대장
  • Visual Studio 2015
  • 게임쿠폰
  • Collections
  • WSL
  • VisualStudio
  • android
  • MySQL
  • vcamp140.dll
  • Shell
  • vcomp140.dll
  • vcruntime140.dll
  • Spring
  • 쿠폰
  • JavaScript
  • SharedPreferences
  • MSSQL
  • 이벤트
  • KitKat
  • dpi
more

Blog is powered by Tistory / Designed by Tistory

티스토리툴바