public Map < Object , Object > getAllProperties ( ) { Map < Object , Object > map = new HashMap < Object , Object > ( ) ; for ( Object key : defaultProps . keySet ( ) ) { map . put ( key , defaultProps . getProperty ( key . toString ( ) ) ) ; } for ( Object key : props . keySet ( ) ) { map . put ( key , props . getProperty ( key . toString ( ) ) ) ; } return Collections . unmodifiableMap ( map ) ; }
Convert the existing configuration values into a Map including those specified in defaultProps .