T
- The type of object to apply method interface to.public class AndAllCondition<T> extends Object implements ICondition<T>
Applies logical AND to all conditions. For example: cond1 AND cond2 AND cond3...
Constructor and Description |
---|
AndAllCondition(List<ICondition<T>> conditions)
Initializes a new instance of the
AndAllCondition{T} class. |
Modifier and Type | Method and Description |
---|---|
boolean |
check(T el)
Returns true if the specified object satisfy the conditions.
|
public AndAllCondition(List<ICondition<T>> conditions)
Initializes a new instance of the AndAllCondition{T}
class.
conditions
- The list of conditions.public boolean check(T el)
Returns true if the specified object satisfy the conditions.
check
in interface ICondition<T>
el
- The object to check.