private K getKey ( String name ) { if ( null != this . keys ) { // we have locally stored values final K [ ] temp = this . keys ; K key ; for ( int i = 0 ; i < temp . length ; i ++ ) { key = temp [ i ] ; if ( null != key && name . equals ( key . toString ( ) ) ) { return key ; } } } // if nothing found locally and we have a parent, check that if ( null != this . parentMap ) { return this . parentMap . getKey ( name ) ; } return null ; }
Look for the key with the provided name . This returns null if no match is found .