public boolean equals()

in tez-api/src/main/java/org/apache/tez/dag/api/VertexLocationHint.java [142:175]


    public boolean equals(Object obj) {
      if (this == obj) {
        return true;
      }
      if (obj == null) {
        return false;
      }
      if (getClass() != obj.getClass()) {
        return false;
      }
      TaskLocationHint other = (TaskLocationHint) obj;
      if (hosts != null) {
        if (!hosts.equals(other.hosts)) {
          return false;
        }
      } else if (other.hosts != null) {
        return false;
      }
      if (racks != null) {
        if (!racks.equals(other.racks)) {
          return false;
        }
      } else if (other.racks != null) {
        return false;
      }
      if (containerId != null) {
        if (!containerId.equals(other.containerId)) {
          return false;
        }
      } else if (other.containerId != null) {
        return false;
      }
      return true;
    }