com.proofpoint.tracetoken.AutoValue_TraceTokenManager_TokenState Maven / Gradle / Ivy
The newest version!
package com.proofpoint.tracetoken;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TraceTokenManager_TokenState extends TraceTokenManager.TokenState {
private final TraceToken token;
private final String oldThreadName;
AutoValue_TraceTokenManager_TokenState(
TraceToken token,
String oldThreadName) {
if (token == null) {
throw new NullPointerException("Null token");
}
this.token = token;
if (oldThreadName == null) {
throw new NullPointerException("Null oldThreadName");
}
this.oldThreadName = oldThreadName;
}
@Override
TraceToken getToken() {
return token;
}
@Override
String getOldThreadName() {
return oldThreadName;
}
@Override
public String toString() {
return "TokenState{"
+ "token=" + token + ", "
+ "oldThreadName=" + oldThreadName
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TraceTokenManager.TokenState) {
TraceTokenManager.TokenState that = (TraceTokenManager.TokenState) o;
return this.token.equals(that.getToken())
&& this.oldThreadName.equals(that.getOldThreadName());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= token.hashCode();
h$ *= 1000003;
h$ ^= oldThreadName.hashCode();
return h$;
}
}