Coll.st
changeset 1325 9446f8ea6941
parent 1289 3abde2c376de
child 1359 5ff95f3f0baf
equal deleted inserted replaced
1324:a9b510f110a6 1325:9446f8ea6941
    41     without knowing how the concrete class implements things. Thus, all
    41     without knowing how the concrete class implements things. Thus, all
    42     methods found here depend on some basic mechanisms to be defined in the
    42     methods found here depend on some basic mechanisms to be defined in the
    43     concrete class. 
    43     concrete class. 
    44     These basic methods are usually defined as #subclassResponsibility here.
    44     These basic methods are usually defined as #subclassResponsibility here.
    45     Some methods are also redefined for better performance.
    45     Some methods are also redefined for better performance.
       
    46 
       
    47     Subclasses should at least implement:
       
    48         do:     - enumerate elements
       
    49 
       
    50     they should implement one of the following set of access messages:
       
    51     keyed collections:
       
    52         at:ifAbsent:            - fetching an element
       
    53         at:                     - fetching an element
       
    54         at:put:                 - storing an element
       
    55 
       
    56     unkeyed collections:
       
    57         add:                    - add an element
       
    58         remove:ifAbsent:        - remove an element
       
    59 
    46 
    60 
    47     [author:]
    61     [author:]
    48         Claus Gittinger
    62         Claus Gittinger
    49 "
    63 "
    50 ! !
    64 ! !
  1451 ! !
  1465 ! !
  1452 
  1466 
  1453 !Collection class methodsFor:'documentation'!
  1467 !Collection class methodsFor:'documentation'!
  1454 
  1468 
  1455 version
  1469 version
  1456     ^ '$Header: /cvs/stx/stx/libbasic/Attic/Coll.st,v 1.52 1996-04-25 16:12:44 cg Exp $'
  1470     ^ '$Header: /cvs/stx/stx/libbasic/Attic/Coll.st,v 1.53 1996-05-02 10:57:30 cg Exp $'
  1457 ! !
  1471 ! !
  1458 Collection initialize!
  1472 Collection initialize!