author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Thu, 30 Oct 2014 20:46:27 +0100 | |
changeset 408 | 9a439a79c6d0 |
permissions | -rw-r--r-- |
1 package org.apidesign.template;
3 // BEGIN: generics.constructor.template2
4 public final class Template<T> extends Object {
5 private final Class<T> type;
7 public Template(Class<T> type) { this.type = type; }
8 public Class<T> getType() { return type; }
10 // now what!?
11 public Template() { this(Object.class); }
12 }
13 // END: generics.constructor.template2