com.github.phantomthief.tuple.Tuple Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of more-lambdas Show documentation
Show all versions of more-lambdas Show documentation
Some useful lambda implements for Java 8.
package com.github.phantomthief.tuple;
/**
* @author w.vela
*
* 多元组的工厂方法
*/
public final class Tuple {
private Tuple() {
throw new UnsupportedOperationException();
}
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);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy