]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/src/org/simantics/g3d/scenegraph/NodeMapProvider.java
Use generics type variable for mapping db object.
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / g3d / scenegraph / NodeMapProvider.java
index f44701e7cd543d78461020e0b7a0f700dfa2f77e..5de7cc379a1700c0e9804e53c84ddde5b468815b 100644 (file)
@@ -1,6 +1,19 @@
-package org.simantics.g3d.scenegraph;\r
-\r
-public interface NodeMapProvider<T> {\r
-\r
-       public NodeMap<T> getNodeMap();\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2012, 2013 Association for Decentralized Information Management in
+ * Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.g3d.scenegraph;
+
+import org.simantics.g3d.scenegraph.base.INode;
+
+public interface NodeMapProvider<DBObject,T,E extends INode> {
+
+       public NodeMap<DBObject,T,E> getNodeMap();
+}