@Override
  public boolean equals(Object obj) {
    return (obj == this) ||
        ((obj != null) && (super.equals(obj) && this.getClass().isInstance(obj) && (hashCode() == obj.hashCode())));
  }
Constructor.

@param predicate1 the first predicate to process
@param predicate2 the second predicate to process (if the first one yields <code>true</code>
ambari-server/src/main/java/org/apache/ambari/server/collections/functors/AndPredicate.java