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

com.github.phantomthief.tuple.Tuple Maven / Gradle / Ivy

There is a newer version: 1.0.10
Show newest version
/**
 * 
 */
package com.github.phantomthief.tuple;

/**
 * @author w.vela
 * 
 *         多元组的工厂方法
 * 
 * @Date Feb 28, 2011 5:00:27 PM
 */
public final class Tuple {

    public static  TwoTuple tuple(final A a, final B b) {
        return new TwoTuple(a, b);
    }

    public static  ThreeTuple tuple(final A a, final B b, final C c) {
        return new ThreeTuple(a, b, c);
    }

    public static  FourTuple tuple(final A a, final B b, final C c,
            final D d) {
        return new FourTuple(a, b, c, d);
    }

    private Tuple() {
        throw new UnsupportedOperationException();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy