memoization-guava/src/main/java/de/xn__ho_hia/memoization/guava/GuavaMemoize.java
public static final <KEY> LongPredicate longPredicate(
            final LongPredicate longPredicate,
            final LongFunction<KEY> keyFunction) {
        return longPredicate(longPredicate, keyFunction, CacheBuilder.newBuilder().build());
    }
/**
     * <p>
     * Memoizes a {@link LongPredicate} in a Guava {@link Cache}.
     * </p>
     * <h3>Features</h3>
     * <ul>
     * <li>Default cache</li>
     * <li>Custom cache key</li>
     * </ul>
     *
     * @param <KEY>
     *            The type of the cache key.
     * @param longPredicate
     *            The {@link LongPredicate} to memoize.
     * @param keyFunction
     *            The {@link LongFunction} to compute the cache key.
     * @return The wrapped {@link LongPredicate}.
     */

Memoizes a  LongPredicate in a Guava  Cache.

Features

Default cache
Custom cache key


@param 
The type of the cache key.
@param longPredicate
The  LongPredicate to memoize.
@param keyFunction
The  LongFunction to compute the cache key.
@return The wrapped  LongPredicate.
Memoizes a LongPredicate in a Guava Cache . Features Default cache Custom cache key @param The type of the cache key . @param longPredicate The LongPredicate to memoize . @param keyFunction The LongFunction to compute the cache key . @return The wrapped LongPredicate .
public static final <KEY> LongPredicate longPredicate(
            final LongPredicate longPredicate,
            final LongFunction<KEY> keyFunction) {
        return longPredicate(longPredicate, keyFunction, CacheBuilder.newBuilder().build());
    }
public static final < KEY > LongPredicate longPredicate ( final LongPredicate longPredicate , final LongFunction < KEY > keyFunction ) { return longPredicate ( longPredicate , keyFunction , CacheBuilder . newBuilder ( ) . build ( ) ) ; }
<p>
 Memoizes a {@link LongPredicate} in a Guava {@link Cache}.
<p > Memoizes a { @link LongPredicate } in a Guava { @link Cache } .