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

Implementation of DoubleSupplier that forwards to a Func<double>. More...

Inheritance diagram for java.util.function.DelegateDoubleSupplier:

Public Member Functions

 DelegateDoubleSupplier (Func< double > func)
 Initializes a new instance.
 
double getAsDouble ()
 

Detailed Description

Implementation of DoubleSupplier that forwards to a Func<double>.

Definition at line 9 of file DelegateDoubleSupplier.cs.

Constructor & Destructor Documentation

◆ DelegateDoubleSupplier()

java.util.function.DelegateDoubleSupplier.DelegateDoubleSupplier ( Func< double > func)

Initializes a new instance.

Parameters
func
Exceptions
ArgumentNullException

Definition at line 19 of file DelegateDoubleSupplier.cs.

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

Member Function Documentation

◆ getAsDouble()

double java.util.function.DelegateDoubleSupplier.getAsDouble ( )

Definition at line 25 of file DelegateDoubleSupplier.cs.

26 {
27 return _func();
28 }

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