Product SiteDocumentation Site

5.3.13. The Relation Class

A relation is a collection with indexes that can be any object. In a relation, each item is associated with a single index, but there can be more than one item with the same index (unlike a table, which can contain only one item for any index).

Table 5.23. ooRexx Relation Class

Object
Relation
+ MapCollection
new
allAt
allIndex
allIndexes
allItems
at, []
difference
empty
hasIndex
hasItem
index
intersection
isEmpty
items
makeArray
put, []=
remove
removeAll
removeItem
subset
supplier
union
uniqueIndexes
xor

Note

The Relation class also has available class methods that its metaclass, the Class class (Section 5.1.2, “The Class Class”), defines. It also inherits methods from the MapCollection (Section 5.3.3, “The MapCollection Class”) class.

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