@Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    ContainerModel other = (ContainerModel) obj;
    if (!id.equals(other.id))
      return false;
    if (tasks == null) {
      if (other.tasks != null)
        return false;
    } else if (!tasks.equals(other.tasks))
      return false;
    return true;
  }
Returns a map for all tasks in this container. The keys are the names of the tasks in the container and the values
are the corresponding {@link TaskModel}s.
@return map from {@link TaskName} to {@link TaskModel}
samza-api/src/main/java/org/apache/samza/job/model/ContainerModel.java