MCPcopy Create free account
hub / github.com/BruceEckel/OnJava8-Examples / XCreator

Class XCreator

generics/CreatorGeneric.java:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12class X {}
13
14class XCreator extends GenericWithCreate<X> {
15 @Override X create() { return new X(); }
16 void f() {
17 System.out.println(
18 element.getClass().getSimpleName());
19 }
20}
21
22public class CreatorGeneric {
23 public static void main(String[] args) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected