Command Example (5/6)
public void addToHistory(AbstractCommand command) {
historyList.addFirst(command);
if (historyList.size() > maxHistorySize) {
historyList.removeLast();
}
}
}
Previous slide
Next slide
Back to first slide
View graphic version