class MapStream implements Stream<Map.Entry<K, V>> {

  public IntStream mapToInt(ToIntBiFunction<? super K, ? super V> mapper) {
    return underlying.mapToInt(e -> mapper.applyAsInt(e.getKey(), e.getValue()));
  }

  private  MapStream(Stream<Map.Entry<K, V>> underlying);

}