Interface Function0<R>

  • All Superinterfaces:
    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 Supplier<R>
    A function with 0 arguments
    • Method Summary

      Modifier and Type Method and 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(Supplier<R> supplier)
      Convert to this function from a Supplier
      R get()
      Apply this function to the arguments.
      default Supplier<R> toSupplier()
      Convert this function to a Supplier
    • 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.