IKVM11
11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
DelegateIntSupplier.cs
Go to the documentation of this file.
1
using
System
;
2
3
namespace
java.util.function
4
{
5
11
public
class
DelegateIntSupplier
: IntSupplier
12
{
13
14
readonly Func<int> _func;
15
21
public
DelegateIntSupplier
(Func<int> func)
22
{
23
_func = func ??
throw
new
ArgumentNullException(nameof(func));
24
}
25
27
public
int
getAsInt
()
28
{
29
return
_func();
30
}
31
32
}
33
34
}
java.util.function.DelegateIntSupplier
Implementation of IntSupplier that forwards to a Func<int>.
Definition
DelegateIntSupplier.cs:12
java.util.function.DelegateIntSupplier.getAsInt
int getAsInt()
Definition
DelegateIntSupplier.cs:27
java.util.function.DelegateIntSupplier.DelegateIntSupplier
DelegateIntSupplier(Func< int > func)
Initializes a new instance.
Definition
DelegateIntSupplier.cs:21
System
Definition
HexConverter.cs:9
java.util.function
Definition
BaseStreamExtensions.cs:6
src
IKVM.Java.Extensions
java
util
function
DelegateIntSupplier.cs
Generated by
1.12.0