edu.stanford.protege.webprotege.search.AutoValue_SearchResultMatchPosition Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.search;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SearchResultMatchPosition extends SearchResultMatchPosition {
private final int start;
private final int end;
AutoValue_SearchResultMatchPosition(
int start,
int end) {
this.start = start;
this.end = end;
}
@JsonProperty("start")
@Override
public int getStart() {
return start;
}
@JsonProperty("end")
@Override
public int getEnd() {
return end;
}
@Override
public String toString() {
return "SearchResultMatchPosition{"
+ "start=" + start + ", "
+ "end=" + end
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SearchResultMatchPosition) {
SearchResultMatchPosition that = (SearchResultMatchPosition) o;
return this.start == that.getStart()
&& this.end == that.getEnd();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= start;
h$ *= 1000003;
h$ ^= end;
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy