samples/genericconstructor/src-plain/org/apidesign/template/Template.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 03 Apr 2020 16:32:36 +0200
changeset 416 9ed8788a1a4e
parent 142 e220ab4a7afa
permissions -rw-r--r--
Using HTTPS to download the libraries
     1 package org.apidesign.template;
     2 
     3 
     4 // BEGIN: generics.constructor.template1
     5 public final class Template extends Object {
     6     private final Class type;
     7 
     8     public Template(Class type) { this.type = type; }
     9     public Class getType() { return type; }
    10 
    11 
    12     public Template() { this(Object.class); }
    13 } 
    14 // END: generics.constructor.template1