nl.uu.cs.ape.sat.models.Pair Maven / Gradle / Ivy
package nl.uu.cs.ape.sat.models;
/**
* The {@code Pair} class represents pairs of objects.
* E.g.: {@code }.
*
* @param the type parameter
* @author Vedran Kasalica
*/
public class Pair {
private T first, second;
/**
* Instantiates a new Pair.
*
* @param first the first
* @param second the second
*/
public Pair(T first, T second) {
this.first = first;
this.second = second;
}
/**
* Gets first.
*
* @return the first
*/
public T getFirst() {
return first;
}
/**
* Gets second.
*
* @return the second
*/
public T getSecond() {
return second;
}
}