Pair
Collection pair
Operations
Compare
Compares two objects based upon first value
method : public : Compare(first:System.Compare) ~ Int
Parameters
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() ~ Int
Return
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) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
first | F | first value |
SetSecond
Sets the second value
method : public : SetSecond(second:S) ~ Nil
Parameters
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() ~ String
Return
Type | Description |
---|---|
String | string representation |