feat: implemented Tuple.of()
This commit is contained in:
parent
871c380952
commit
b183f623d6
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user