@Override
  public int hashCode() {
    int result = resourceDefinition.hashCode();
    result = 31 * result + clusterController.hashCode();
    result = 31 * result + requestedProperties.hashCode();
    result = 31 * result + keyValueMap.hashCode();
    result = 31 * result + (userPredicate != null ? userPredicate.hashCode() : 0);
    result = 31 * result + (pageRequest != null ? pageRequest.hashCode() : 0);
    return result;
  }
Constructor

@param keyValueMap         the map of key values
@param resourceDefinition  the resource definition
@param clusterController   the cluster controller
ambari-server/src/main/java/org/apache/ambari/server/api/query/QueryImpl.java