]> gerrit.simantics Code Review - simantics/platform.git/blob - CommandSpec.java
5edd59cd0c235c853641b4b0b5bb569d1ea8a4ec
[simantics/platform.git] / 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 }