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

Implements the Predicate interface against a delegate. More...

Inheritance diagram for java.util.function.DelegatePredicate< TArg >:

Public Member Functions

 DelegatePredicate (Func< TArg, bool > func)
 Initializes a new instance.
 
Predicate and (Predicate other)
 
Predicate negate ()
 
Predicate or (Predicate other)
 
bool test (object t)
 

Detailed Description

Implements the Predicate interface against a delegate.

Template Parameters
TArg

Definition at line 10 of file DelegatePredicate.cs.

Constructor & Destructor Documentation

◆ DelegatePredicate()

java.util.function.DelegatePredicate< TArg >.DelegatePredicate ( Func< TArg, bool > func)

Initializes a new instance.

Parameters
func

Definition at line 19 of file DelegatePredicate.cs.

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

Member Function Documentation

◆ and()

Predicate java.util.function.DelegatePredicate< TArg >.and ( Predicate other)

Definition at line 24 of file DelegatePredicate.cs.

25 {
26 return Predicate.__DefaultMethods.and(this, other);
27 }

◆ negate()

Predicate java.util.function.DelegatePredicate< TArg >.negate ( )

Definition at line 29 of file DelegatePredicate.cs.

30 {
31 return Predicate.__DefaultMethods.negate(this);
32 }

◆ or()

Predicate java.util.function.DelegatePredicate< TArg >.or ( Predicate other)

Definition at line 34 of file DelegatePredicate.cs.

35 {
36 return Predicate.__DefaultMethods.or(this, other);
37 }

◆ test()

bool java.util.function.DelegatePredicate< TArg >.test ( object t)

Definition at line 39 of file DelegatePredicate.cs.

40 {
41 return _func((TArg)t);
42 }

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