Skip to content

Instantly share code, notes, and snippets.

@YuukiARIA
YuukiARIA / gist:6409957
Created September 2, 2013 07:08
[memo] helping inference of a type parameter
class Entity<X>
{
public Entity(X x)
{
}
public static <X> Entity<X> of(X x)
{
return new Entity<X>(x);