@Override public boolean equals(Object other) { if (other == null) return false; if (other.getClass().isAssignableFrom(this.getClass())) { return this.getProto().equals(this.getClass().cast(other).getProto()); } return false; }
@Override public boolean equals(Object other) { if (other == null) return false; if (other.getClass().isAssignableFrom(this.getClass())) { return this.getProto().equals(this.getClass().cast(other).getProto()); } return false; }
@Override public boolean equals(Object other) { if (other == null) return false; if (other.getClass().isAssignableFrom(this.getClass())) { return this.getProto().equals(this.getClass().cast(other).getProto()); } return false; }
if (hasLocalPath()) { result = result && getLocalPath() .equals(other.getLocalPath());
if (hasLocalPath()) { result = result && getLocalPath() .equals(other.getLocalPath());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto other = (org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto) obj; boolean result = true; result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && (hasDestinationDirectory() == other.hasDestinationDirectory()); if (hasDestinationDirectory()) { result = result && getDestinationDirectory() .equals(other.getDestinationDirectory()); } 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.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto other = (org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto) obj; boolean result = true; result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && (hasDestinationDirectory() == other.hasDestinationDirectory()); if (hasDestinationDirectory()) { result = result && getDestinationDirectory() .equals(other.getDestinationDirectory()); } 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.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto other = (org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto) obj; boolean result = true; result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && (hasDestinationDirectory() == other.hasDestinationDirectory()); if (hasDestinationDirectory()) { result = result && getDestinationDirectory() .equals(other.getDestinationDirectory()); } 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.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto other = (org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto) obj; boolean result = true; result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && (hasDestinationDirectory() == other.hasDestinationDirectory()); if (hasDestinationDirectory()) { result = result && getDestinationDirectory() .equals(other.getDestinationDirectory()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
private void mergeLocalToBuilder() { if (this.resource != null && !((LocalResourcePBImpl)this.resource).getProto() .equals(builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.localPath != null && !((URLPBImpl)this.localPath).getProto() .equals(builder.getLocalPath())) { builder.setLocalPath(convertToProtoFormat(this.localPath)); } if (this.exception != null && !((SerializedExceptionPBImpl)this.exception).getProto() .equals(builder.getException())) { builder.setException(convertToProtoFormat(this.exception)); } }
private void mergeLocalToBuilder() { ResourceLocalizationSpecProtoOrBuilder l = viaProto ? proto : builder; if (this.resource != null && !(l.getResource() .equals(((LocalResourcePBImpl) resource).getProto()))) { maybeInitBuilder(); builder.setResource(((LocalResourcePBImpl) resource).getProto()); } if (this.destinationDirectory != null && !(l.getDestinationDirectory() .equals(((URLPBImpl) destinationDirectory).getProto()))) { maybeInitBuilder(); builder.setDestinationDirectory(((URLPBImpl) destinationDirectory) .getProto()); } } }
private void mergeLocalToBuilder() { ResourceLocalizationSpecProtoOrBuilder l = viaProto ? proto : builder; if (this.resource != null && !(l.getResource() .equals(((LocalResourcePBImpl) resource).getProto()))) { maybeInitBuilder(); builder.setResource(((LocalResourcePBImpl) resource).getProto()); } if (this.destinationDirectory != null && !(l.getDestinationDirectory() .equals(((URLPBImpl) destinationDirectory).getProto()))) { maybeInitBuilder(); builder.setDestinationDirectory(((URLPBImpl) destinationDirectory) .getProto()); } } }
private void mergeLocalToBuilder() { if (this.resource != null && !((LocalResourcePBImpl)this.resource).getProto() .equals(builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.localPath != null && !((URLPBImpl)this.localPath).getProto() .equals(builder.getLocalPath())) { builder.setLocalPath(convertToProtoFormat(this.localPath)); } if (this.exception != null && !((SerializedExceptionPBImpl)this.exception).getProto() .equals(builder.getException())) { builder.setException(convertToProtoFormat(this.exception)); } }
private void mergeLocalToBuilder() { ResourceLocalizationSpecProtoOrBuilder l = viaProto ? proto : builder; if (this.resource != null && !(l.getResource() .equals(((LocalResourcePBImpl) resource).getProto()))) { maybeInitBuilder(); builder.setResource(((LocalResourcePBImpl) resource).getProto()); } if (this.destinationDirectory != null && !(l.getDestinationDirectory() .equals(((URLPBImpl) destinationDirectory).getProto()))) { maybeInitBuilder(); builder.setDestinationDirectory(((URLPBImpl) destinationDirectory) .getProto()); } } }
private void mergeLocalToBuilder() { ResourceLocalizationSpecProtoOrBuilder l = viaProto ? proto : builder; if (this.resource != null && !(l.getResource() .equals(((LocalResourcePBImpl) resource).getProto()))) { maybeInitBuilder(); builder.setResource(((LocalResourcePBImpl) resource).getProto()); } if (this.destinationDirectory != null && !(l.getDestinationDirectory() .equals(((URLPBImpl) destinationDirectory).getProto()))) { maybeInitBuilder(); builder.setDestinationDirectory(((URLPBImpl) destinationDirectory) .getProto()); } } }
private void mergeLocalToBuilder() { if (this.resource != null && !((LocalResourcePBImpl)this.resource).getProto() .equals(builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.localPath != null && !((URLPBImpl)this.localPath).getProto() .equals(builder.getLocalPath())) { builder.setLocalPath(convertToProtoFormat(this.localPath)); } if (this.exception != null && !((SerializedExceptionPBImpl)this.exception).getProto() .equals(builder.getException())) { builder.setException(convertToProtoFormat(this.exception)); } }
private void mergeLocalToBuilder() { if (this.resource != null && !((LocalResourcePBImpl)this.resource).getProto() .equals(builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.localPath != null && !((URLPBImpl)this.localPath).getProto() .equals(builder.getLocalPath())) { builder.setLocalPath(convertToProtoFormat(this.localPath)); } if (this.exception != null && !((SerializedExceptionPBImpl)this.exception).getProto() .equals(builder.getException())) { builder.setException(convertToProtoFormat(this.exception)); } }
private synchronized void mergeLocalToBuilder() { LocalResourceProtoOrBuilder l = viaProto ? proto : builder; if (this.url != null && !(l.getResource().equals(((URLPBImpl) url).getProto()))) { maybeInitBuilder(); l = builder; builder.setResource(convertToProtoFormat(this.url)); } }
private synchronized void mergeLocalToBuilder() { LocalResourceProtoOrBuilder l = viaProto ? proto : builder; if (this.url != null && !(l.getResource().equals(((URLPBImpl) url).getProto()))) { maybeInitBuilder(); l = builder; builder.setResource(convertToProtoFormat(this.url)); } }
private synchronized void mergeLocalToBuilder() { LocalResourceProtoOrBuilder l = viaProto ? proto : builder; if (this.url != null && !(l.getResource().equals(((URLPBImpl) url).getProto()))) { maybeInitBuilder(); l = builder; builder.setResource(convertToProtoFormat(this.url)); } }