com.google.gerrit.server.patch.AutoValue_GitPositionTransformer_RangeMapping Maven / Gradle / Ivy
package com.google.gerrit.server.patch;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GitPositionTransformer_RangeMapping extends GitPositionTransformer.RangeMapping {
private final GitPositionTransformer.Range oldLineRange;
private final GitPositionTransformer.Range newLineRange;
AutoValue_GitPositionTransformer_RangeMapping(
GitPositionTransformer.Range oldLineRange,
GitPositionTransformer.Range newLineRange) {
if (oldLineRange == null) {
throw new NullPointerException("Null oldLineRange");
}
this.oldLineRange = oldLineRange;
if (newLineRange == null) {
throw new NullPointerException("Null newLineRange");
}
this.newLineRange = newLineRange;
}
@Override
public GitPositionTransformer.Range oldLineRange() {
return oldLineRange;
}
@Override
public GitPositionTransformer.Range newLineRange() {
return newLineRange;
}
@Override
public String toString() {
return "RangeMapping{"
+ "oldLineRange=" + oldLineRange + ", "
+ "newLineRange=" + newLineRange
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof GitPositionTransformer.RangeMapping) {
GitPositionTransformer.RangeMapping that = (GitPositionTransformer.RangeMapping) o;
return this.oldLineRange.equals(that.oldLineRange())
&& this.newLineRange.equals(that.newLineRange());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= oldLineRange.hashCode();
h$ *= 1000003;
h$ ^= newLineRange.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy