Created
September 2, 2013 07:08
-
-
Save YuukiARIA/6409957 to your computer and use it in GitHub Desktop.
[memo] helping inference of a type parameter
This file contains 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
class Entity<X> | |
{ | |
public Entity(X x) | |
{ | |
} | |
public static <X> Entity<X> of(X x) | |
{ | |
return new Entity<X>(x); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment