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.
Author:
Lukas Eder
  • Method Summary

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

    • 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 Supplier<R>
    • toSupplier

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

      static <R> Function0<R> from(Supplier<R> supplier)
      Convert to this function from a Supplier