public boolean containsValue ( Object value ) { // the value is a direct hit from our cache if ( cache . containsValue ( value ) ) return true ; // the value is a direct hit from our hashmap if ( container . containsValue ( value ) ) return true ; // otherwise, the value isn't within this object return false ; }
checks whether a specific value is container within either container or cache