Back: LinkedList-testing
Up: Class reference
Forward: LookupKey class-basic
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.89 LookupKey

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

6.89.1 LookupKey class: basic  (class)
6.89.2 LookupKey: accessing  (instance)
6.89.3 LookupKey: printing  (instance)
6.89.4 LookupKey: storing  (instance)
6.89.5 LookupKey: testing  (instance)


6.89.1 LookupKey class: basic

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


6.89.2 LookupKey: accessing

key
Answer the receiver's key

key: aKey
Set the receiver's key to aKey


6.89.3 LookupKey: printing

printOn: aStream
Put on aStream a representation of the receiver


6.89.4 LookupKey: storing

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


6.89.5 LookupKey: testing

< 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




This document was generated on May, 12 2002 using texi2html