IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
java.util.function.DelegateFunction< TArg1, TArg2, TResult > Class Template Reference

Implementation of Function that forwards to a Func<T, TResult>. More...

Inheritance diagram for java.util.function.DelegateFunction< TArg1, TArg2, TResult >:

Public Member Functions

 DelegateFunction (Func< TArg, TResult > func)
 Initializes a new instance.
 
Function andThen (Function after)
 
Function compose (Function before)
 
object? apply (object t)
 
 DelegateFunction (Func< TArg1, TArg2, TResult > func)
 Initializes a new instance.
 
BiFunction andThen (Function after)
 
object? apply (object t1, object t2)
 

Detailed Description

Implementation of Function that forwards to a Func<T, TResult>.

Template Parameters
TArg
TResult

Definition at line 48 of file DelegateFunction.cs.

Constructor & Destructor Documentation

◆ DelegateFunction() [1/2]

java.util.function.DelegateFunction< TArg1, TArg2, TResult >.DelegateFunction ( Func< TArg, TResult > func)

Initializes a new instance.

Parameters
func
Exceptions
ArgumentNullException

Definition at line 21 of file DelegateFunction.cs.

22 {
23 this._func = func ?? throw new ArgumentNullException(nameof(func));
24 }

◆ DelegateFunction() [2/2]

java.util.function.DelegateFunction< TArg1, TArg2, TResult >.DelegateFunction ( Func< TArg1, TArg2, TResult > func)

Initializes a new instance.

Parameters
func
Exceptions
ArgumentNullException

Definition at line 58 of file DelegateFunction.cs.

59 {
60 this._func = func ?? throw new ArgumentNullException(nameof(func));
61 }

Member Function Documentation

◆ andThen() [1/2]

Function java.util.function.DelegateFunction< TArg1, TArg2, TResult >.andThen ( Function after)

Definition at line 26 of file DelegateFunction.cs.

27 {
28 return Function.__DefaultMethods.andThen(this, after);
29 }

◆ andThen() [2/2]

BiFunction java.util.function.DelegateFunction< TArg1, TArg2, TResult >.andThen ( Function after)

Definition at line 63 of file DelegateFunction.cs.

64 {
65 return BiFunction.__DefaultMethods.andThen(this, after);
66 }

◆ apply() [1/2]

object? java.util.function.DelegateFunction< TArg1, TArg2, TResult >.apply ( object t)

Definition at line 36 of file DelegateFunction.cs.

37 {
38 return _func((TArg)t);
39 }

◆ apply() [2/2]

object? java.util.function.DelegateFunction< TArg1, TArg2, TResult >.apply ( object t1,
object t2 )

Definition at line 68 of file DelegateFunction.cs.

69 {
70 return _func((TArg1)t1, (TArg2)t2);
71 }

◆ compose()

Function java.util.function.DelegateFunction< TArg1, TArg2, TResult >.compose ( Function before)

Definition at line 31 of file DelegateFunction.cs.

32 {
33 return Function.__DefaultMethods.compose(this, before);
34 }

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