Browse Source

Make FunctionSupplier a FunctionalInterface

dependabot/maven/junit-junit-4.13.1
Travis Burtrum 4 years ago
parent
commit
c327f24e02
  1. 5
      common/src/main/java/com/moparisthebest/jdbc/cache/FunctionSupplier.java

5
common/src/main/java/com/moparisthebest/jdbc/cache/FunctionSupplier.java vendored

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

Loading…
Cancel
Save