Created
October 29, 2012 17:36
-
-
Save collinvandyck/3975098 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My take: git://gist.github.com/3976902.git :)