Skip to content

Commit

Permalink
Add getter methods for Triple class
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Oct 17, 2023
1 parent 5f30e00 commit 67a0714
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/games/stendhal/client/Triple.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* $Id$ */
/***************************************************************************
* (C) Copyright 2003-2010 - Stendhal *
* (C) Copyright 2003-2023 - Stendhal *
***************************************************************************
***************************************************************************
* *
Expand All @@ -27,6 +27,28 @@ public final class Triple<P, S, T> {
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;
Expand Down

0 comments on commit 67a0714

Please sign in to comment.