package com.crawler.common; public abstract class BaseCommand 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; } }