GnuSmalltalkUsersGuide:BaseChapter 093

From 흡혈양파의 번역工房
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
LargeArrayedCollection

LargeArrayedCollection

네임스페이스 Smalltalk에 정의됨

슈퍼클래스: ArrayedCollection

범주: 컬렉션-순차가능


나는 추상 클래스로서 많은 항목이 같은 값을 가질 때 메모리를 절약하도록 특별히 설계되었다.


LargeArrayedCollection 클래스: 인스턴스 생성

new: anInteger

anInteger 요소의 공간이 있는 수신자의 새 인스턴스를 응답하라.


LargeArrayedCollection: 접근하기

at: anIndex

수신자의 anIndex 번째 항목을 응답하라.

at: anIndex put: anObject

수신자의 anIndex 번째 항목을 anObject로 교체하라.

compress

메모리 최대 절약을 위해 배열의 표현을 정렬(Arrange)하라.


LargeArrayedCollection: 기본

= aLargeArray

수신자와 aLargeArray가 같은 내용을 갖는지 응답하라.

hash

수신자에 대한 해시값을 응답하라.

size

수신자에 유효한 최대 색인을 응답하라.


Notes