IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
java.util.function.DelegateConsumer< T > Class Template Reference

Implementation of Consumer that sends output to a delegate. More...

Inheritance diagram for java.util.function.DelegateConsumer< T >:

Public Member Functions

 DelegateConsumer (Action< T > action)
 Initializes a new instance.
 
void accept (object t)
 
Consumer andThen (Consumer other)
 

Detailed Description

Implementation of Consumer that sends output to a delegate.

Template Parameters
T

Definition at line 11 of file DelegateConsumer.cs.

Constructor & Destructor Documentation

◆ DelegateConsumer()

Initializes a new instance.

Parameters
action
Exceptions
ArgumentNullException

Definition at line 21 of file DelegateConsumer.cs.

22 {
23 _action = action ?? throw new ArgumentNullException(nameof(action));
24 }

Member Function Documentation

◆ accept()

void java.util.function.DelegateConsumer< T >.accept ( object t)

Definition at line 26 of file DelegateConsumer.cs.

27 {
28 _action((T)t);
29 }

◆ andThen()

Consumer java.util.function.DelegateConsumer< T >.andThen ( Consumer other)

Definition at line 31 of file DelegateConsumer.cs.

32 {
33 return Consumer.__DefaultMethods.andThen(this, other);
34 }

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