com.google.gerrit.server.account.externalids.AutoValue_ExternalId_Key Maven / Gradle / Ivy
package com.google.gerrit.server.account.externalids;
import com.google.gerrit.common.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ExternalId_Key extends ExternalId.Key {
private final String scheme;
private final String id;
AutoValue_ExternalId_Key(
@Nullable String scheme,
String id) {
this.scheme = scheme;
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@Nullable
@Override
public String scheme() {
return scheme;
}
@Override
public String id() {
return id;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExternalId.Key) {
ExternalId.Key that = (ExternalId.Key) o;
return (this.scheme == null ? that.scheme() == null : this.scheme.equals(that.scheme()))
&& this.id.equals(that.id());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (scheme == null) ? 0 : scheme.hashCode();
h$ *= 1000003;
h$ ^= id.hashCode();
return h$;
}
private static final long serialVersionUID = 1L;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy