org.cpsolver.ifs.util

## Class Query.AndTerm

- java.lang.Object
- - org.cpsolver.ifs.util.Query.CompositeTerm
  - - org.cpsolver.ifs.util.Query.AndTerm

- All Implemented Interfaces:
    Serializable, Query.Term
  Enclosing class:
    Query

      public static class Query.AndTerm
      extends Query.CompositeTerm

  Representation of an AND between two or more terms.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AndTerm()`
    `AndTerm(Collection<Query.Term> terms)`
    `AndTerm(Query.Term... terms)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getOp()` Operation over the terms, such as AND or OR
    `Boolean` | `match(Query.AmbigousTermMatcher m)` Does the term matches the provided object, returning null if does not apply (e.g., the object does not have the provided attribute)
    `boolean` | `match(Query.TermMatcher m)` A term matches, when all sub-term match

    - ### Methods inherited from class org.cpsolver.ifs.util.Query.CompositeTerm

      `add, hasAttribute, remove, terms, toString, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### AndTerm

          public AndTerm()

    - #### AndTerm

          public AndTerm(Query.Term... terms)

    - #### AndTerm

          public AndTerm(Collection<Query.Term> terms)

  - ### Method Detail

    - #### getOp

          public String getOp()

      Description copied from class: `Query.CompositeTerm`
      Operation over the terms, such as AND or OR
      Specified by:
        `getOp` in class `Query.CompositeTerm`

    - #### match

          public boolean match(Query.TermMatcher m)

      A term matches, when all sub-term match

    - #### match

          public Boolean match(Query.AmbigousTermMatcher m)

      Description copied from interface: `Query.Term`
      Does the term matches the provided object, returning null if does not apply (e.g., the object does not have the provided attribute)