com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class 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 Detail

      • And

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

        Creates new And condition.

        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 interface ICondition<T>
        Parameters:
        el - The object to check.
        Returns:
        True if the object satisfy the conditions.