Product SiteDocumentation Site

5.3.14. The Set Class

A Set is a collection containing member items where the index is the same as the item (similar to a Bag collection). Any object can be placed in a set. There can be only one occurrence of any object in a set (unlike a Bag collection). Item equality is determined by using the == method.

Table 5.24. ooRexx Set Class

Object
Table
+ MapCollection
Set
+ SetCollection
of
hasItem
intersection
put, []=
putAll
subset
union
xor

Note

The Set class also has available class methods that its metaclass, the Class class (Section 5.1.2, “The Class Class”), defines.
The Set class is a subclass of the Table class. In addition to its own methods, it inherits the methods of the Object class (see Section 5.1.1, “The Object Class”) and the Table class. It also inherits methods from the Set Collection (Section 5.3.5, “The SetCollection Class”) class.

5.3.14.1. Inherited Methods

Methods inherited from the Object class (Section 5.1.1, “The Object Class”).
new (Class Method)initsend
= \= == \== <> ><instanceMethodsendWith
|| '' (abuttal)' ' (blank)instanceMethodssetMethod
(Operator Methods)isAstart
classisInstanceOfstartWith
copyobjectNamestring
defaultNameobjectName=unsetMethod
hasMethodrequest 
identityHashrun 
Methods inherited from the Collection class (Section 5.3.2, “The Collection Class”).
[]equivalentput
[]=hasIndexsubset
allIndexeshasItemsupplier
allItemsindexunion
atintersectionxor
differenceitems 
disjointmakeArray 
Methods inherited from the MapCollection (Section 5.3.3, “The MapCollection Class”).
putAll  
Methods inherited from the Table class (Section 5.3.16, “The Table Class”).
new (Class Method)hasIndexput
allIndexeshasItem[]=
allItemsindexremove
atisEmptyremoveItem
[]itemssupplier
emptymakeArray