]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.testing/src/org/simantics/db/testing/common/CommandSpec.java
Added missing org.simantics.db.{tests,testing} plug-ins.
[simantics/platform.git] / bundles / org.simantics.db.testing / src / org / simantics / db / testing / common / CommandSpec.java
1 package org.simantics.db.testing.common;
2
3
4 public class CommandSpec<T extends Command> {
5         public Class<T> clazz;
6         public double weight;
7         private CommandSpec(Class<T> clazz, double weight) {
8                 this.clazz = clazz;
9                 this.weight = weight;
10         }
11         public static <T2 extends Command> CommandSpec<T2> make(Class<T2> clazz, double weight) {
12                 return new CommandSpec<T2>(clazz, weight);
13         }
14 }