graphql.util.Pair Maven / Gradle / Ivy
package graphql.util;
import graphql.Internal;
@Internal
public final class Pair {
public Pair(T first, U second) {
this.second = second;
this.first = first;
}
public final T first;
public final U second;
public static Pair pair(T first, U second) {
return new Pair<>(first, second);
}
@Override
public String toString() {
return "(" + first + ", " + second + ")";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy