Back: LinkedList-testing Up: Base classes Forward: LookupKey class-basic   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.103 LookupKey

Defined in namespace Smalltalk
Superclass: Magnitude
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.

1.103.1 LookupKey class: basic  (class)
1.103.2 LookupKey: accessing  (instance)
1.103.3 LookupKey: printing  (instance)
1.103.4 LookupKey: storing  (instance)
1.103.5 LookupKey: testing  (instance)


1.103.1 LookupKey class: basic

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


1.103.2 LookupKey: accessing

key
Answer the receiver's key

key: aKey
Set the receiver's key to aKey


1.103.3 LookupKey: printing

printOn: aStream
Put on aStream a representation of the receiver


1.103.4 LookupKey: storing

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


1.103.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



Back: LookupKey-storing Up: LookupKey Forward: LookupTable   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on August, 19 2010 using texi2html