[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
[Nuget] json.net 설치불가
VisualStudio 에서 nuget 으로 json.NET 을 설치하려 하는데 아래와 같은 오류가 발생했다. 'Newtonsoft.Json'에 이미 'NETStandard.Library'에 대한 종속성이 정의되어 있습니다. 설치를 안했는데 무슨소리인가 했더니, nuget 버전이 옛날꺼네 -_-; nuget 사이트에 들어가서 원하는 버전을 다운받아서 설치하니 잘 됫다. nuget 다운로드 사이트 : https://www.nuget.org/downloads [작성] devbible.tistory.com
Development
2017. 9. 19. 11:28
최근에 올라온 글
글 보관함
- Total
- Today
- Yesterday