Skip to content

Instantly share code, notes, and snippets.

@collinvandyck
Created October 29, 2012 17:36
Show Gist options
  • Select an option

  • Save collinvandyck/3975098 to your computer and use it in GitHub Desktop.

Select an option

Save collinvandyck/3975098 to your computer and use it in GitHub Desktop.
public class Pair<U,T> {
private final U left;
private final T right;
public static <U,T> Pair<U,T> of(U u, T t) {
return new Pair<U, T>(u, t);
}
public Pair(U left, T right) {
this.left = left;
this.right = right;
}
public U getLeft() {
return left;
}
public T getRight() {
return right;
}
}
@eribeiro

Copy link
Copy Markdown

My take: git://gist.github.com/3976902.git :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment