Interface NonnullSupplier<T>

    • Method Detail

      • get

        @Nonnull
        T get()
        Specified by:
        get in interface Supplier<T>
      • of

        @Nonnull
        static <T> NonnullSupplier<T> of​(@Nonnull
                                         T input)
        Return a NonnullSupplier that returns the input argument.
        Type Parameters:
        T - argument type
        Parameters:
        input - input argument to return
        Returns:
        the input argument