zipkin2.storage.cassandra.v1.AutoValue_SelectTraceIdIndex_Input Maven / Gradle / Ivy
The newest version!
package zipkin2.storage.cassandra.v1;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_SelectTraceIdIndex_Input extends SelectTraceIdIndex.Input {
private final K partitionKey;
private final long start_ts;
private final long end_ts;
private final int limit_;
AutoValue_SelectTraceIdIndex_Input(
K partitionKey,
long start_ts,
long end_ts,
int limit_) {
if (partitionKey == null) {
throw new NullPointerException("Null partitionKey");
}
this.partitionKey = partitionKey;
this.start_ts = start_ts;
this.end_ts = end_ts;
this.limit_ = limit_;
}
@Override
K partitionKey() {
return partitionKey;
}
@Override
long start_ts() {
return start_ts;
}
@Override
long end_ts() {
return end_ts;
}
@Override
int limit_() {
return limit_;
}
@Override
public String toString() {
return "Input{"
+ "partitionKey=" + partitionKey + ", "
+ "start_ts=" + start_ts + ", "
+ "end_ts=" + end_ts + ", "
+ "limit_=" + limit_
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SelectTraceIdIndex.Input) {
SelectTraceIdIndex.Input> that = (SelectTraceIdIndex.Input>) o;
return this.partitionKey.equals(that.partitionKey())
&& this.start_ts == that.start_ts()
&& this.end_ts == that.end_ts()
&& this.limit_ == that.limit_();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= partitionKey.hashCode();
h$ *= 1000003;
h$ ^= (int) ((start_ts >>> 32) ^ start_ts);
h$ *= 1000003;
h$ ^= (int) ((end_ts >>> 32) ^ end_ts);
h$ *= 1000003;
h$ ^= limit_;
return h$;
}
}