IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
java.util.function.DelegateIntSupplier Class Reference

Implementation of IntSupplier that forwards to a Func<int>. More...

Inheritance diagram for java.util.function.DelegateIntSupplier:

Public Member Functions

 DelegateIntSupplier (Func< int > func)
 Initializes a new instance.
 
int getAsInt ()
 

Detailed Description

Implementation of IntSupplier that forwards to a Func<int>.

Template Parameters
TArg
TResult

Definition at line 11 of file DelegateIntSupplier.cs.

Constructor & Destructor Documentation

◆ DelegateIntSupplier()

java.util.function.DelegateIntSupplier.DelegateIntSupplier ( Func< int > func)

Initializes a new instance.

Parameters
func
Exceptions
ArgumentNullException

Definition at line 21 of file DelegateIntSupplier.cs.

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

Member Function Documentation

◆ getAsInt()

int java.util.function.DelegateIntSupplier.getAsInt ( )

Definition at line 27 of file DelegateIntSupplier.cs.

28 {
29 return _func();
30 }

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