Description:
Holds two Steelblue objects or values in a simple pair data structure. This is really an example object for SteelBlue development.
Members:
first - The first item in the pair second - The second item in the pair
Methods:
getFirst() - Gets the first item in the pair getSecond() - Gets the second item in the pair Pair() - Constructor setFirst($value) - Sets the first item in the pair setSecond($value) - Sets the second item in the pair
Example:
$a = new Pair();
$a.setFirst("hi");
$a.setSecond("foo");
print("The pair is (".$a.getFirst().",".$a.getSecond().")");| Member name: first | Class Pair |
Description:
The first item in the pair. Can be both read and written.
See Also: Pair::getFirst(), Pair::setFirst($value)
| Member name: second | Class Pair |
Description:
The second item in the pair. Can be both read and written.
See Also: Pair::getSecond(), Pair::setSecond($value)
| Member name: getFirst() | Class Pair |
Description:
Gets the first item in the pair.
Usage:
$return = $pair.setFirst();
| $return | - | Value of the first item |
See Also: Pair::first, Pair::setFirst()
| Member name: getSecond() | Class Pair |
Description:
Gets the second item in the pair.
Usage:
$return = $pair.setSecond();
| $return | - | Value of the second item |
See Also: Pair::second, Pair::setSecond($value)
| Member name: Pair() | Class Pair |
Description:
Creates a new pair and initializes the two values to the empty string.
Usage:
$pair = new Pair();
| $pair | - | Reference to the new Pair object |
| Member name: setFirst($value) | Class Pair |
Description:
Sets the first item in the pair to the given value.
Usage:
$pair.setFirst($value);
| $value | - | Value to set the first item |
See Also: Pair::first, Pair::getFirst()
| Member name: setSecond($value) | Class Pair |
Description:
Sets the second item in the pair to the given value.
Usage:
$pair.setSecond($value);
| $value | - | Value to set the second item |
See Also: Pair::second, Pair::getSecond()