Product SiteDocumentation Site

5.3.2. The Collection Class

The Collection class is a MIXIN class that defines the basic set of methods implemented by all Collections. Many of the Collection class methods are abstract and must be implemented the inheriting subclasses.

Table 5.12. ooRexx Collection Class

Object
Collection
 
allIndexes
allItems
at, []
difference
disjoint
equivalent
hasIndex
hasItem
index
intersection
items
makeArray
put, []=
subset
supplier
toString
union
xor

5.3.2.1. []


     +-,-----+
     V       |
>>-[---index-+-]-----------------------------------------------><

Returns the item associated with the specified index or indexes. If the collection has no item associated with the specified index or indexes, this method returns the Nil object. This is an abstract method that must be implemented by a subclasses.