All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.util.Pair Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
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