class CollectionFunctions {

    public static <S, T, R, U> Map<R, U> simpleMapEntry(Map<S, T> map, Function<Entry<S, T>, R> keyMapping, Function<Entry<S,T>, U> valueMapping) {
        return map.entrySet().stream().collect(toMap(keyMapping, valueMapping));
    }

    private  CollectionFunctions();

}