memoization-core/src/main/java/de/xn__ho_hia/memoization/map/MapMemoize.java
public static DoubleToLongFunction doubleToLongFunction(
            final DoubleToLongFunction function,
            final Map<Double, Long> cache) {
        return doubleToLongFunction(function, Double::valueOf, cache);
    }
/**
     * <p>
     * Memoizes a {@link DoubleToLongFunction} 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 DoubleToLongFunction} to memoize.
     * @param cache
     *            The {@link Map} based cache to use.
     * @return The wrapped {@link DoubleToLongFunction}.
     */


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