public final String toFFDCString ( Map aMap ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( ' ' ) ; if ( aMap == null ) { buffer . append ( "<null>" ) ; } else { Iterator i = aMap . entrySet ( ) . iterator ( ) ; boolean hasNext = i . hasNext ( ) ; int ctr = 0 ; while ( hasNext ) { Map . Entry entry = ( Map . Entry ) ( i . next ( ) ) ; Object key = entry . getKey ( ) ; Object value = entry . getValue ( ) ; buffer . append ( ( key == aMap ? "<this map>" : toFFDCStringSingleObject ( key ) ) + "=" + ( value == aMap ? "<this map>" : toFFDCStringSingleObject ( value ) ) + lineSeparator ) ; hasNext = i . hasNext ( ) ; if ( ctr > multiple_object_count_to_ffdc ) { buffer . append ( "........contd" ) ; hasNext = false ; } } } buffer . append ( ' ' ) ; return buffer . toString ( ) ; }
Generates a String representation of a Map calling toFFDCStringObject for the first multiple_object_count_to_ffdc elements