@SuppressWarnings("rawtypes")
        @Override
        public boolean contains(Object o) {
            if (!(o instanceof Entry)) return false;
            Entry other = (Entry) o;
            if (!underlyingMap.containsKey(other.getKey())) return false;
            B value = underlyingMap.get(other.getKey());
            V translatedValue = valueMapping.apply(value);
            return Objects.equals(translatedValue, other.getValue());
        }
A map which presents a lightweight view of another "underlying" map. Values in the
underlying map will be translated by a callback before they are returned.
<br>
This class is not internally synchronized. (Typically the underlyingMap is treated as
immutable.)
server-common/src/main/java/org/apache/kafka/server/util/TranslatedValueMapView.java