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

Implementation of LongSupplier that forwards to a Func<long>. More...

Inheritance diagram for java.util.function.DelegateLongSupplier:

Public Member Functions

 DelegateLongSupplier (Func< long > func)
 Initializes a new instance.
 
long getAsLong ()
 

Detailed Description

Implementation of LongSupplier that forwards to a Func<long>.

Definition at line 9 of file DelegateLongSupplier.cs.

Constructor & Destructor Documentation

◆ DelegateLongSupplier()

java.util.function.DelegateLongSupplier.DelegateLongSupplier ( Func< long > func)

Initializes a new instance.

Parameters
func
Exceptions
ArgumentNullException

Definition at line 19 of file DelegateLongSupplier.cs.

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

Member Function Documentation

◆ getAsLong()

long java.util.function.DelegateLongSupplier.getAsLong ( )

Definition at line 25 of file DelegateLongSupplier.cs.

26 {
27 return _func();
28 }

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