IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
DelegateLongFunction.cs
Go to the documentation of this file.
1using System;
2
3namespace java.util.function
4{
5
10 public class DelegateLongFunction<TResult> : LongFunction
11 {
12
13 readonly Func<long, TResult> _func;
14
20 public DelegateLongFunction(Func<long, TResult> func)
21 {
22 _func = func ?? throw new ArgumentNullException(nameof(func));
23 }
24
25 public object? apply(long t)
26 {
27 return _func(t);
28 }
29
30 }
31
32}
Implementation of LongFunction that forwards to a Func<Int64, TResult>.
DelegateLongFunction(Func< long, TResult > func)
Initializes a new instance.