Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
1 package org.apidesign.template;
3 // BEGIN: generics.constructor.template3
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; }
11 @SuppressWarnings("unchecked")
12 public Template() { this((Class<T>)Object.class); }
14 public static Template<Object> create() {
15 return new Template<Object>(Object.class);
18 // END: generics.constructor.template3