АЕ
Size: a a a
АЕ
АЕ
M
MM
MM
MM
EG
DS
АЕ
DS
DS
AD
DS
AD
DS
АЕ
PP
public <View extends MvpView> void beforeApply(final List<ViewCommand<View>> currentState,
final ViewCommand<View> incomingCommand) {
Iterator<ViewCommand<View>> iterator = currentState.iterator();
while (iterator.hasNext()) {
ViewCommand<View> entry = iterator.next();
if (entry.getClass() == incomingCommand.getClass()) {
iterator.remove();
break;
}
}
currentState.add(incomingCommand);
}
PP
DB
MM