Robot Core Documentation
Loading...
Searching...
No Matches
edu.wpi.first.math.Pair< A, B > Class Template Reference

Public Member Functions

 Pair (A first, B second)
 
getFirst ()
 
getSecond ()
 

Static Public Member Functions

static< A, B > Pair< A, B > of (A a, B b)
 

Detailed Description

Represents a pair of two objects.

Parameters
<A>The first object's type.
<B>The second object's type.

Constructor & Destructor Documentation

◆ Pair()

edu.wpi.first.math.Pair< A, B >.Pair ( A first,
B second )

Constructs a pair.

Parameters
firstThe first object.
secondThe second object.

Member Function Documentation

◆ getFirst()

A edu.wpi.first.math.Pair< A, B >.getFirst ( )

Returns the first object.

Returns
The first object.

◆ getSecond()

B edu.wpi.first.math.Pair< A, B >.getSecond ( )

Returns the second object.

Returns
The second object.

◆ of()

static< A, B > Pair< A, B > edu.wpi.first.math.Pair< A, B >.of ( A a,
B b )
static

Returns a pair comprised of the two given objects.

Parameters
<A>The first object's type.
<B>The second object's type.
aThe first object.
bThe second object.
Returns
A pair comprised of the two given objects.

The documentation for this class was generated from the following file: