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