Sketcher2 source code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
563 B

package com.jotuntech.sketcher.client;
public class CommandEntry {
private Integer sourceKey;
private Command command;
public CommandEntry(Integer sourceKey, Command command) {
if(sourceKey == null) {
throw new NullPointerException("Source key can't be null.");
} else if(command == null) {
throw new NullPointerException("Command can't be null.");
}
this.sourceKey = sourceKey;
this.command = command;
}
public Integer getSourceKey() {
return sourceKey;
}
public Command getCommand() {
return command;
}
}