Interface Function0<R>

  • 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 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 interface java.util.function.Supplier<R>
      • toSupplier

        default java.util.function.Supplier<R> toSupplier()
        Convert this function to a Supplier
      • from

        static <R> Function0<R> from​(java.util.function.Supplier<R> supplier)
        Convert to this function from a Supplier