RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
org.wpilib.util.Pair< A, B > Class Template Reference

Public Member Functions

 Pair (A first, B second)
A getFirst ()
B getSecond ()
String toString ()
boolean equals (Object obj)
int hashCode ()

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.

Definition at line 15 of file Pair.java.

Constructor & Destructor Documentation

◆ Pair()

org.wpilib.util.Pair< A, B >.Pair ( A first,
B second )

Constructs a pair.

Parameters
firstThe first object.
secondThe second object.

Definition at line 25 of file Pair.java.

Member Function Documentation

◆ equals()

boolean org.wpilib.util.Pair< A, B >.equals ( Object obj)

Checks equality between this Pair and another object.

Parameters
objThe other object.
Returns
Whether the two objects are equal or not.

Definition at line 73 of file Pair.java.

◆ getFirst()

A org.wpilib.util.Pair< A, B >.getFirst ( )

Returns the first object.

Returns
The first object.

Definition at line 35 of file Pair.java.

◆ getSecond()

B org.wpilib.util.Pair< A, B >.getSecond ( )

Returns the second object.

Returns
The second object.

Definition at line 44 of file Pair.java.

◆ hashCode()

int org.wpilib.util.Pair< A, B >.hashCode ( )

Definition at line 81 of file Pair.java.

◆ of()

static< A, B > Pair< A, B > org.wpilib.util.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.

Definition at line 57 of file Pair.java.

◆ toString()

String org.wpilib.util.Pair< A, B >.toString ( )

Definition at line 62 of file Pair.java.


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