Make FunctionSupplier a FunctionalInterface
This commit is contained in:
parent
595caa4aa8
commit
c327f24e02
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue