public boolean containsValue ( Object val ) { synchronized ( this ) { for ( V item : values ( ) ) { if ( item instanceof CachedItem ) { CachedItem ci = ( CachedItem ) item ; if ( ci . isValidForCache ( ) && ci . equals ( val ) ) { return true ; } } else if ( item . equals ( val ) ) { return true ; } } } return false ; }
Verifies that the specified value is in the cache .