|
|
|
@ -3,9 +3,12 @@ package com.moparisthebest.jdbc.cache;
@@ -3,9 +3,12 @@ package com.moparisthebest.jdbc.cache;
|
|
|
|
|
import java.util.function.Function; |
|
|
|
|
import java.util.function.Supplier; |
|
|
|
|
|
|
|
|
|
@FunctionalInterface |
|
|
|
|
public interface FunctionSupplier<T, F> extends Supplier<T>, Function<F, T> { |
|
|
|
|
|
|
|
|
|
T get(F f); |
|
|
|
|
default T get(final F f) { |
|
|
|
|
return get(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
default T apply(final F f) { |
|
|
|
|