public boolean equals()

in twill-yarn/src/main/java/org/apache/twill/internal/appmaster/AllocationSpecification.java [84:99]


  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (!(obj instanceof AllocationSpecification)) {
      return false;
    }
    AllocationSpecification other = (AllocationSpecification) obj;
    return (instanceId == other.instanceId) &&
      Objects.equal(resource, other.resource) &&
      Objects.equal(type, other.type) &&
      Objects.equal(runnableName, other.runnableName);
  }