IKVM11
11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
DelegateConsumer.cs
Go to the documentation of this file.
1
using
System
;
2
3
namespace
java.util.function
4
{
5
6
11
public
class
DelegateConsumer
<T> : Consumer
12
{
13
14
readonly Action<T> _action;
15
21
public
DelegateConsumer
(Action<T> action)
22
{
23
_action = action ??
throw
new
ArgumentNullException(nameof(action));
24
}
25
26
public
void
accept
(
object
t)
27
{
28
_action((T)t);
29
}
30
31
public
Consumer
andThen
(Consumer other)
32
{
33
return
Consumer.__DefaultMethods.andThen(
this
, other);
34
}
35
36
}
37
38
}
java.util.function.DelegateConsumer
Implementation of Consumer that sends output to a delegate.
Definition
DelegateConsumer.cs:12
java.util.function.DelegateConsumer.DelegateConsumer
DelegateConsumer(Action< T > action)
Initializes a new instance.
Definition
DelegateConsumer.cs:21
java.util.function.DelegateConsumer.accept
void accept(object t)
Definition
DelegateConsumer.cs:26
java.util.function.DelegateConsumer.andThen
Consumer andThen(Consumer other)
Definition
DelegateConsumer.cs:31
System
Definition
HexConverter.cs:9
java.util.function
Definition
BaseStreamExtensions.cs:6
src
IKVM.Java.Extensions
java
util
function
DelegateConsumer.cs
Generated by
1.12.0