Package com.aspose.tasks
Class And<T>
- java.lang.Object
-
- com.aspose.tasks.And<T>
-
- Type Parameters:
T
- The type of object to apply method interface to.
- All Implemented Interfaces:
ICondition<T>
public class And<T> extends Object implements ICondition<T>
Applies logical AND to the specified conditions.
-
-
Constructor Summary
Constructors Constructor Description And(ICondition<T> cond1, ICondition<T> cond2)
Initializes a new instance of theAnd{T}
class.
-
-
-
Constructor Detail
-
And
public And(ICondition<T> cond1, ICondition<T> cond2)
Initializes a new instance of the
And{T}
class.- Parameters:
cond1
- First condition.cond2
- Second condition.
-
-
Method Detail
-
check
public boolean check(T el)
Returns true if the specified object satisfy the conditions.
- Specified by:
check
in interfaceICondition<T>
- Parameters:
el
- The object to check.- Returns:
- True if the object satisfy the conditions.
-
-