Robot Core Documentation
|
Public Member Functions | |
Pair (A first, B second) | |
A | getFirst () |
B | getSecond () |
Static Public Member Functions | |
static< A, B > Pair< A, B > | of (A a, B b) |
Represents a pair of two objects.
<A> | The first object's type. |
<B> | The second object's type. |
edu.wpi.first.math.Pair< A, B >.Pair | ( | A | first, |
B | second ) |
Constructs a pair.
first | The first object. |
second | The second object. |
A edu.wpi.first.math.Pair< A, B >.getFirst | ( | ) |
Returns the first object.
B edu.wpi.first.math.Pair< A, B >.getSecond | ( | ) |
Returns the second object.
|
static |
Returns a pair comprised of the two given objects.
<A> | The first object's type. |
<B> | The second object's type. |
a | The first object. |
b | The second object. |