|
|
6.79 LargeArrayedCollection
- Defined in namespace Smalltalk
- Category: Collections-Sequenceable
I am an abstract class specially designed to save
memory when lots of items have the same value.
6.79.1 LargeArrayedCollection class: instance creation
- new: anInteger
- Answer a new instance of the receiver, with room for anInteger elements.
6.79.2 LargeArrayedCollection: accessing
- at: anIndex
- Answer the anIndex-th item of the receiver.
- at: anIndex put: anObject
- Replace the anIndex-th item of the receiver with anObject.
- compress
- Arrange the representation of the array for maximum memory saving.
6.79.3 LargeArrayedCollection: basic
- = aLargeArray
- Answer whether the receiver and aLargeArray have the same contents
- hash
- Answer an hash value for the receiver
- size
- Answer the maximum valid index for the receiver
|