private Entry getEntry ( Object key ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "getEntry" , new Object [ ] { key } ) ; Entry entry = ( Entry ) super . find ( key ) ; if ( entry != null ) { // Look for the youngest duplicate. duplicateSearch : for ( ; ; ) { Entry predecessor = ( Entry ) predecessor ( entry ) ; if ( predecessor == null ) break duplicateSearch ; if ( compare ( key , predecessor . key ) != 0 ) break duplicateSearch ; entry = predecessor ; } // for (;;). } // if (entry != null) if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , "getEntry" , new Object [ ] { entry } ) ; return entry ; }
Returns the first Entry matching the key or null if the map does not contain an entry for the key . The entry returned may be uncommited .