-
- All Superinterfaces:
java.util.function.Supplier<R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Function0<R> extends java.util.function.Supplier<R>
A function with 0 arguments.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default R
apply()
Apply this function to the arguments.default R
apply(Tuple0 args)
Apply this function to the arguments.static <R> Function0<R>
from(java.util.function.Supplier<R> supplier)
Convert to this function from aSupplier
R
get()
Apply this function to the arguments.default java.util.function.Supplier<R>
toSupplier()
Convert this function to aSupplier
-
-
-
Method Detail
-
apply
default R apply()
Apply this function to the arguments.
-
apply
default R apply(Tuple0 args)
Apply this function to the arguments.- Parameters:
args
- The arguments as a tuple.
-
get
R get()
Apply this function to the arguments.- Specified by:
get
in interfacejava.util.function.Supplier<R>
-
toSupplier
default java.util.function.Supplier<R> toSupplier()
Convert this function to aSupplier
-
from
static <R> Function0<R> from(java.util.function.Supplier<R> supplier)
Convert to this function from aSupplier
-
-