public DeletionInfo add ( DeletionInfo newInfo ) { add ( newInfo . topLevel ) ; if ( ranges == null ) ranges = newInfo . ranges == null ? null : newInfo . ranges . copy ( ) ; else if ( newInfo . ranges != null ) ranges . addAll ( newInfo . ranges ) ; return this ; }
Combines another DeletionInfo with this one and returns the result . Whichever top - level tombstone has the higher markedForDeleteAt timestamp will be kept along with its localDeletionTime . The range tombstones will be combined .