com.google.gerrit.entities.AutoValue_Address Maven / Gradle / Ivy
package com.google.gerrit.entities;
import com.google.errorprone.annotations.concurrent.LazyInit;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_Address extends $AutoValue_Address {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile int hashCode;
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile boolean hashCode$Memoized;
AutoValue_Address(String name, String email) {
super(name, email);
}
@Override
public int hashCode() {
if (!hashCode$Memoized) {
synchronized (this) {
if (!hashCode$Memoized) {
hashCode = super.hashCode();
hashCode$Memoized = true;
}
}
}
return hashCode;
}
}