public V get ( Object key ) { // Get the index from the map Integer index = keyToIndex . get ( key ) ; // Check that the key is in the map if ( index == null ) { return null ; } // Get the data from the array return data . get ( index . intValue ( ) ) ; }
Returns the value to which this map maps the specified key .