Commit ea9e95dc authored by Malo KERVESTIN's avatar Malo KERVESTIN
Browse files

ajout Triple.java

parent dab2ecdf
package game;
public class Triple<T, U, V> {
private final T first;
private final U second;
private final V third;
public Triple(T first, U second, V third) {
this.first = first;
this.second = second;
this.third = third;
}
public T getFst() {
return first;
}
public U getSnd() {
return second;
}
public V getTrd() {
return third;
}
public String toString() {
return "(" + getFst() + ", " + getSnd() + ", " + getTrd() + ")";
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment