samples/genericconstructor/src-plain/org/apidesign/template/Template.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 21:30:10 +0100
changeset 409 40cabcdcd2be
parent 142 e220ab4a7afa
permissions -rw-r--r--
Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
     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