Category: Language-Data types
Superclass: Magnitude
I represent a key for looking up entries in a data structure. Subclasses of me, such as Association, typically represent dictionary entries.

Method category index

basic (class)
accessing (instance)
printing (instance)
storing (instance)
testing (instance)

basic (class)

key: aKey
Answer a new instance of the receiver with the given key and value

top


accessing (instance)

key
Answer the receiver's key

key: aKey

Set the receiver's key to aKey

top


printing (instance)

printOn: aStream
Put on aStream a representation of the receiver

top


storing (instance)

storeOn: aStream
Put on aStream some Smalltalk code compiling to the receiver

top


testing (instance)

< aLookupKey
Answer whether the receiver's key is less than aLookupKey's

= aLookupKey

Answer whether the receiver's key and value are the same as aLookupKey's, or false if aLookupKey is not an instance of the receiver

hash

Answer an hash value for the receiver

top