feat: implemented Tuple.of()

This commit is contained in:
Yannik Bretschneider 2021-06-05 19:40:58 +02:00
parent 871c380952
commit b183f623d6

View File

@ -10,4 +10,8 @@ public class Tuple<X, Y> {
this.item1 = item1; this.item1 = item1;
this.item2 = item2; this.item2 = item2;
} }
public static <X, Y> Tuple<X, Y> of(X x, Y y) {
return new Tuple<X, Y>(x, y);
}
} }