public void setComments ( SortedSet < Comment > comments ) { if ( comments == null ) { this . comments = null ; } else { if ( this . comments != null ) this . comments . clear ( ) ; for ( Comment c : comments ) addComment ( ) ; } }
Sets comment list and updates the parent of each entry to point to this node . Replaces any existing comments .