All Bundles

Pair<F:Compare,S>

Collection pair

Implements: Compare, Stringify

Operations

New

Default constructor

New(first:F, second:S)
Parameters
NameTypeDescription
firstFcompare object
secondSobject

Compare

Compares two objects based upon first value

method : public : Compare(first:System.Compare) ~ Int
Parameters
NameTypeDescription
firstComparecompare object

Return
TypeDescription
Int0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater

GetFirst

Gets the first value

method : public : GetFirst() ~ F
Return
TypeDescription
Ffirst value

GetSecond

Gets the second value

method : public : GetSecond() ~ S
Return
TypeDescription
Ssecond value

HashID

Returns the class default hash ID

method : public : HashID() ~ Int
Return
TypeDescription
Inthash ID

SetFirst

Sets the first value

method : public : SetFirst(first:F) ~ Nil
Parameters
NameTypeDescription
firstFfirst value

SetSecond

Sets the second value

method : public : SetSecond(second:S) ~ Nil
Parameters
NameTypeDescription
secondSsecond 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
TypeDescription
Stringstring representation