public String contents ( ) { StringBuffer buf = new StringBuffer ( ) ; synchronized ( buf ) { for ( int i = 0 ; i < elements . size ( ) ; i ++ ) { Object element = elements . get ( i ) ; if ( element == null ) buf . append ( "null" ) ; else buf . append ( element . toString ( ) ) ; } } return buf . toString ( ) ; }
Contents of the composite .