public synchronized boolean addChild ( String child ) { if ( children == null ) { // let's be conservative on the typical number of children children = new HashSet < String > ( 8 ) ; } return children . add ( child ) ; }
Method that inserts a child into the children set