Created
November 3, 2020 17:49
-
-
Save dimitris-papadimitriou-chr/293e0ec3ae6e00f3f41a7ec348f25008 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FunctionalInterface | |
public interface SupplierFunctor<T> extends Supplier<T> { | |
default <T1> SupplierFunctor<T1> andThen(Function<T, T1> f) { | |
return () -> f.apply(this.get()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment