memoization-core/src/main/java/de/xn__ho_hia/memoization/map/MapMemoize.java
public static LongToDoubleFunction longToDoubleFunction(
            final LongToDoubleFunction function,
            final Map<Long, Double> cache) {
        return longToDoubleFunction(function, Long::valueOf, cache);
    }
/**
     * <p>
     * Memoizes a {@link LongToDoubleFunction} in a {@link java.util.concurrent.ConcurrentMap}.
     * </p>
     * <h3>Features</h3>
     * <ul>
     * <li>Custom cache</li>
     * <li>Default cache key</li>
     * </ul>
     *
     * @param function
     *            The {@link LongToDoubleFunction} to memoize.
     * @param cache
     *            The {@link Map} based cache to use.
     * @return The wrapped {@link LongToDoubleFunction}.
     */


@param function
The  LongToDoubleFunction to memoize.
@param cache
The  Map based cache to use.
@return The wrapped  LongToDoubleFunction.
@param function The LongToDoubleFunction to memoize . @param cache The Map based cache to use . @return The wrapped LongToDoubleFunction .
public static LongToDoubleFunction longToDoubleFunction(
            final LongToDoubleFunction function,
            final Map<Long, Double> cache) {
        return longToDoubleFunction(function, Long::valueOf, cache);
    }
public static LongToDoubleFunction longToDoubleFunction ( final LongToDoubleFunction function , final Map < Long , Double > cache ) { return longToDoubleFunction ( function , Long :: valueOf , cache ) ; }
<p>
 Memoizes a {@link LongToDoubleFunction} in a {@link java.util.concurrent.ConcurrentMap}.
<p > Memoizes a { @link LongToDoubleFunction } in a { @link java . util . concurrent . ConcurrentMap } .