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

org.tarantool.util.TupleTwo Maven / Gradle / Ivy

package org.tarantool.util;

/**
 * Two places tuple.
 */
public class TupleTwo {

    private final T first;
    private final U second;

    private TupleTwo(T first, U second) {
        this.first = first;
        this.second = second;
    }

    public static  TupleTwo of(T first, U second) {
        return new TupleTwo<>(first, second);
    }

    public T getFirst() {
        return first;
    }

    public U getSecond() {
        return second;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy