Skip to content

Instantly share code, notes, and snippets.

@snadjafi
Created October 17, 2016 01:28
Show Gist options
  • Save snadjafi/f15c2d58d654035a92896d243ab15477 to your computer and use it in GitHub Desktop.
Save snadjafi/f15c2d58d654035a92896d243ab15477 to your computer and use it in GitHub Desktop.
public class Triple<F, S, T> {
public final F first;
public final S second;
public final T third;
private static <F, S, T> Triple<F, S, T> create(F first, S second, T third) {
return new Triple<>(first, second, third);
}
public Triple(F first, S second, T third) {
this.first = first;
this.second = second;
this.third = third;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment