From 67a07147163bf1bc7180159256d54ce53393ccbc Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Mon, 16 Oct 2023 23:08:52 -0700 Subject: [PATCH] Add getter methods for Triple class --- src/games/stendhal/client/Triple.java | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/games/stendhal/client/Triple.java b/src/games/stendhal/client/Triple.java index c0c8abc785d..3736ec76d4d 100644 --- a/src/games/stendhal/client/Triple.java +++ b/src/games/stendhal/client/Triple.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2010 - Stendhal * + * (C) Copyright 2003-2023 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -27,6 +27,28 @@ public final class Triple { private final S sec; private final T third; + + /** + * Retrieves the first object. + */ + public P getFirst() { + return prim; + } + + /** + * Retrieves the second object. + */ + public S getSecond() { + return sec; + } + + /** + * Retrieves the third object. + */ + public T getThird() { + return third; + } + @Override public int hashCode() { final int prime = 31;