And
Contents
[
Hide
]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
Constructor | Description |
---|---|
And(ICondition<T> cond1, ICondition<T> cond2) | Initializes a new instance of the And<T> class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
cond1 | ICondition | First condition. |
cond2 | ICondition | Second condition. |
check(T el)
public boolean check(T el)
Returns true if the specified object satisfy the conditions.
Parameters:
Parameter | Type | Description |
---|---|---|
el | T | The object to check. |
Returns: boolean - True if the object satisfy the conditions.