public class Foo private T value; public Foo(T value) { this.value = value; } }