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.
31 lines
598 B
31 lines
598 B
package com.crawler.common;
|
|
|
|
public abstract class BaseCommand<T> implements Command {
|
|
protected T model;
|
|
protected ConsoleView view;
|
|
|
|
public BaseCommand(T model, ConsoleView view) {
|
|
this.model = model;
|
|
this.view = view;
|
|
}
|
|
|
|
public BaseCommand(ConsoleView view) {
|
|
this.view = view;
|
|
}
|
|
|
|
public T getModel() {
|
|
return model;
|
|
}
|
|
|
|
public void setModel(T model) {
|
|
this.model = model;
|
|
}
|
|
|
|
public ConsoleView getView() {
|
|
return view;
|
|
}
|
|
|
|
public void setView(ConsoleView view) {
|
|
this.view = view;
|
|
}
|
|
}
|