Previously, when people need to deal with DTU with different UpdateStrategy using different actions, they need to
if (DTU.getUpdateStrategy() == DomTreeUpdater::UpdateStrategy::Lazy) {
...
}
if (DTU.getUpdateStrategy() == DomTreeUpdater::UpdateStrategy::Eager) {
...
}After the patch, they can avoid code patterns above
if (DTU.isUpdateLazy()){
...
}
if (!DTU.isUpdateLazy()){
...
}