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

org.leo.aws.ddb.utils.Tuples Maven / Gradle / Ivy

There is a newer version: 1.0.21
Show newest version
package org.leo.aws.ddb.utils;

public class Tuples {
    public static  Tuple of(final A first, final B second) {
        return new Tuple<>(first, second);
    }

    public static  Tuple3 of(final A first, final B second, final C third) {
        return new Tuple3<>(first, second, third);
    }

    public static  Tuple4 of(final A first, final B second, final C third, final D fourth) {
        return new Tuple4<>(first, second, third, fourth);
    }

    public static  Tuple5 of(final A first, final B second, final C third, final D fourth, final E fifth) {
        return new Tuple5<>(first, second, third, fourth, fifth);
    }

    public static  Tuple6 of(final A first, final B second, final C third, final D fourth, final E fifth, final F sixth) {
        return new Tuple6<>(first, second, third, fourth, fifth, sixth);
    }

    public static  Tuple7 of(final A first, final B second, final C third, final D fourth, final E fifth, final F sixth, final G seventh) {
        return new Tuple7<>(first, second, third, fourth, fifth, sixth, seventh);
    }

    public static  Tuple8 of(final A first, final B second, final C third, final D fourth, final E fifth, final F sixth, final G seventh, final H eighth) {
        return new Tuple8<>(first, second, third, fourth, fifth, sixth, seventh,eighth);
    }

    public static  Tuple9 of(final A first, final B second, final C third, final D fourth, final E fifth, final F sixth, final G seventh, final H eighth, final I ninth) {
        return new Tuple9<>(first, second, third, fourth, fifth, sixth, seventh,eighth, ninth);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy