/** * Adds all updates in a given list B to the end of the updates in this list (A). * * <p>As updates must be unambiguous and are ordered from the highest to the lowest PRE value, * make sure that all updates in B access PRE values smaller than any update in A. * * <p>Mainly used to resolve text node adjacency. * * @param toMerge given list that is appended to the end of this list */ private void merge(final AtomicUpdateList toMerge) { updStructural.addAll(toMerge.updStructural); updValue.addAll(toMerge.updValue); dirty(); }