private void updateToTop ( Node toUpdate ) { while ( toUpdate != null ) { for ( Entry e : toUpdate . getEntries ( ) ) e . recalculateData ( ) ; if ( toUpdate . getEntries ( ) [ 0 ] . getParentEntry ( ) == null ) break ; toUpdate = toUpdate . getEntries ( ) [ 0 ] . getParentEntry ( ) . getNode ( ) ; } }
recalculates data for all entries that lie on the path from the root to the Entry toUpdate .