The Gravy Framework

Class Collection

Object
   |
   +--Collection

class Collection


the Collection "interface" has no code, only an API followed by convention (ie DUCK-TYPING)

  The required "interface" for "collections":
  (1) getCount() - returns number of elements in collection
  (2) getItem( itemKey ) - return specified element
  (3) iterate( function(itemKey,itemObject) ) - calls
      specified function on each element in collection;
      If the function returns a true then the iteration
      stops right there instead of continuing thru rest
      of the elements in the collection

Defined in mvc.js

Author: Bruce Wallace (PolyGlotInc.com)
Version: 1.0


Constructor Summary
Collection ()
           
 

Constructor Detail

Collection

Collection()

The Gravy Framework

Documentation generated by JSDoc on Fri Mar 17 06:40:21 2006