@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.ResourceProtos.AllocationResourceProto)) { return super.equals(obj); } org.apache.tajo.ResourceProtos.AllocationResourceProto other = (org.apache.tajo.ResourceProtos.AllocationResourceProto) obj; boolean result = true; result = result && (hasWorkerId() == other.hasWorkerId()); if (hasWorkerId()) { result = result && (getWorkerId() == other.getWorkerId()); } result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.ResourceProtos.AllocationResourceProto)) { return super.equals(obj); } org.apache.tajo.ResourceProtos.AllocationResourceProto other = (org.apache.tajo.ResourceProtos.AllocationResourceProto) obj; boolean result = true; result = result && (hasWorkerId() == other.hasWorkerId()); if (hasWorkerId()) { result = result && (getWorkerId() == other.getWorkerId()); } result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.ResourceProtos.TaskAllocationProto)) { return super.equals(obj); } org.apache.tajo.ResourceProtos.TaskAllocationProto other = (org.apache.tajo.ResourceProtos.TaskAllocationProto) obj; boolean result = true; result = result && (hasTaskRequest() == other.hasTaskRequest()); if (hasTaskRequest()) { result = result && getTaskRequest() .equals(other.getTaskRequest()); } result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
if (hasCapacity()) { result = result && getCapacity() .equals(other.getCapacity());
if (hasCapacity()) { result = result && getCapacity() .equals(other.getCapacity());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.ResourceProtos.TaskAllocationProto)) { return super.equals(obj); } org.apache.tajo.ResourceProtos.TaskAllocationProto other = (org.apache.tajo.ResourceProtos.TaskAllocationProto) obj; boolean result = true; result = result && (hasTaskRequest() == other.hasTaskRequest()); if (hasTaskRequest()) { result = result && getTaskRequest() .equals(other.getTaskRequest()); } result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && (hasVolumeId() == other.hasVolumeId()); if (hasVolumeId()) { result = result && (getVolumeId() == other.getVolumeId()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }