Pair
Collection pair
Operations
Compare
Compares two objects based upon first value
method : public : Compare(first:System.Compare) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| first | Compare | compare object |
Return
| Type | Description |
|---|---|
| Int | 0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater |
HashID
Returns the class default hash ID
method : public : HashID() ~ IntReturn
| Type | Description |
|---|---|
| Int | hash ID |
New
Default constructor
New(first:F, second:S)Parameters
| Name | Type | Description |
|---|---|---|
| first | F | compare object |
| second | S | object |
SetFirst
Sets the first value
method : public : SetFirst(first:F) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| first | F | first value |
SetSecond
Sets the second value
method : public : SetSecond(second:S) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| second | S | second value |
ToString
Formats the collection into a string. If an element implements the 'Stringify' interface, it's 'ToString()' is called.
method : public : ToString() ~ StringReturn
| Type | Description |
|---|---|
| String | string representation |