I have a class containing a static create method.
public class TestClass { public static TestClass create() { return new TestClass&l
The generic type can be specified in the class declaration:
public class TestClass { public static TestClass create() { return new TestClass(); } } // Elsewhere in the code TestClass testClass = TestClass.create();