IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
java.util.function.DelegateSupplier< T > Class Template Reference

Implementation of Supplier that forwards to a Func<T>. More...

Inheritance diagram for java.util.function.DelegateSupplier< T >:

Public Member Functions

 DelegateSupplier (Func< T > func)
 Initializes a new instance.
 
object? get ()
 

Detailed Description

Implementation of Supplier that forwards to a Func<T>.

Template Parameters
T

Definition at line 10 of file DelegateSupplier.cs.

Constructor & Destructor Documentation

◆ DelegateSupplier()

Initializes a new instance.

Parameters
func
Exceptions
ArgumentNullException

Definition at line 20 of file DelegateSupplier.cs.

21 {
22 _func = func ?? throw new ArgumentNullException(nameof(func));
23 }

Member Function Documentation

◆ get()

Definition at line 26 of file DelegateSupplier.cs.

27 {
28 return _func();
29 }

The documentation for this class was generated from the following file: