T - The type of object to apply method interface to.public class And<T> extends Object implements ICondition<T>
Applies logical AND to the specified conditions.
| Constructor and Description |
|---|
And(ICondition<T> cond1,
ICondition<T> cond2)
Initializes a new instance of the
And{T} class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(T el)
Returns true if the specified object satisfy the conditions.
|
public And(ICondition<T> cond1, ICondition<T> cond2)
Initializes a new instance of the And{T} class.
cond1 - First condition.cond2 - Second condition.public boolean check(T el)
Returns true if the specified object satisfy the conditions.
check in interface ICondition<T>el - The object to check.