public class AGeneric { private T myT; public T getT() { return myT; } public void setT(T t) { myT = t; } } class Client { private AGeneric myGen = new AGeneric(); }