And

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.tasks.ICondition

public class And<T> implements ICondition<T>

Applies logical AND to the specified conditions.

T : The type of object to apply method interface to.

Constructors

ConstructorDescription
And(ICondition<T> cond1, ICondition<T> cond2)Initializes a new instance of the And<T> class.

Methods

MethodDescription
check(T el)Returns true if the specified object satisfy the conditions.

And(ICondition<T> cond1, ICondition<T> cond2)

public And(ICondition<T> cond1, ICondition<T> cond2)

Initializes a new instance of the And<T> class.

Parameters:

ParameterTypeDescription
cond1IConditionFirst condition.
cond2IConditionSecond condition.

check(T el)

public boolean check(T el)

Returns true if the specified object satisfy the conditions.

Parameters:

ParameterTypeDescription
elTThe object to check.

Returns: boolean - True if the object satisfy the conditions.