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