Java.util.function.Supplier: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
<syntaxhighlight lang='java'>
<syntaxhighlight lang='java'>
@FunctionalInterface
@FunctionalInterface
public interface UnaryOperator<T> extends Function<T, T> {
public interface Supplier<T> extends Function<T, T> {


     T apply(T t);
     T get();


}
}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 21:34, 29 March 2018

External

Internal

Overview

@FunctionalInterface
public interface Supplier<T> extends Function<T, T> {

    T get();

}