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
jtulach@142
     1
package org.apidesign.template;
jtulach@142
     2
jtulach@146
     3
jtulach@142
     4
// BEGIN: generics.constructor.template1
jtulach@142
     5
public final class Template extends Object {
jtulach@142
     6
    private final Class type;
jtulach@142
     7
jtulach@142
     8
    public Template(Class type) { this.type = type; }
jtulach@142
     9
    public Class getType() { return type; }
jtulach@142
    10
jtulach@142
    11
jtulach@142
    12
    public Template() { this(Object.class); }
jtulach@142
    13
} 
jtulach@142
    14
// END: generics.constructor.template1