Map convertToMap ( ) { Map ret = new HashMap ( ) ; for ( Enumeration e = enumerateKeys ( ) ; e . hasMoreElements ( ) ; ) { Object key = e . nextElement ( ) ; Object value = getValue ( key ) ; ret . put ( key , value ) ; } return ret ; }
Converts to a Map