public boolean equals()

in myriad-scheduler/src/main/java/org/apache/myriad/scheduler/NMProfile.java [74:107]


  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    NMProfile other = (NMProfile) obj;
    if (cpus == null) {
      if (other.cpus != null) {
        return false;
      }
    } else if (!cpus.equals(other.cpus)) {
      return false;
    }
    if (memory == null) {
      if (other.memory != null) {
        return false;
      }
    } else if (!memory.equals(other.memory)) {
      return false;
    }
    if (name == null) {
      if (other.name != null) {
        return false;
      }
    } else if (!name.equals(other.name)) {
      return false;
    }
    return true;
  }