From b183f623d67555a6f7b0a13ae011a64d011139a8 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Sat, 5 Jun 2021 19:40:58 +0200 Subject: [PATCH] feat: implemented Tuple.of() --- src/main/java/uulm/teamname/marvelous/gamelibrary/Tuple.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/Tuple.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/Tuple.java index 039028f..ee66660 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/Tuple.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/Tuple.java @@ -10,4 +10,8 @@ public class Tuple { this.item1 = item1; this.item2 = item2; } + + public static Tuple of(X x, Y y) { + return new Tuple(x, y); + } }