Files
allwpilib/wpimath/src/main/java/edu/wpi/first/math/Pair.java
Tyler Veness a791470de7 Clean up Java warning suppressions (#4433)
Checkstyle naming conventions were changed to allow most of what's in
wpimath. Naming rules were disabled completely in wpimath since almost
all suppressions are for math notation.
2022-09-24 00:13:55 -07:00

28 lines
579 B
Java

// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.math;
public class Pair<A, B> {
private final A m_first;
private final B m_second;
public Pair(A first, B second) {
m_first = first;
m_second = second;
}
public A getFirst() {
return m_first;
}
public B getSecond() {
return m_second;
}
public static <A, B> Pair<A, B> of(A a, B b) {
return new Pair<>(a, b);
}
}