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