Make FunctionSupplier a FunctionalInterface

This commit is contained in:
Travis Burtrum 2019-07-26 00:56:37 -04:00
parent 595caa4aa8
commit c327f24e02
1 changed files with 4 additions and 1 deletions

View File

@ -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) {