All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gerrit.server.account.externalids.AutoValue_ExternalId Maven / Gradle / Ivy

There is a newer version: 3.11.0-rc3
Show newest version
package com.google.gerrit.server.account.externalids;

import com.google.errorprone.annotations.concurrent.LazyInit;
import com.google.gerrit.entities.Account;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import javax.annotation.processing.Generated;
import org.eclipse.jgit.lib.ObjectId;

@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_ExternalId extends $AutoValue_ExternalId {
  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile int hashCode;

  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile boolean hashCode$Memoized;

  @LazyInit
  @SuppressWarnings("Immutable")
  private transient volatile String toString;

  AutoValue_ExternalId(ExternalId.Key key$, Account.Id accountId$, boolean isCaseInsensitive$,
      String email$, String password$, ObjectId blobId$) {
    super(key$, accountId$, isCaseInsensitive$, email$, password$, blobId$);
  }

  @Override
  public int hashCode() {
    if (!hashCode$Memoized) {
      synchronized (this) {
        if (!hashCode$Memoized) {
          hashCode = super.hashCode();
          hashCode$Memoized = true;
        }
      }
    }
    return hashCode;
  }

  @Override
  public String toString() {
    if (toString == null) {
      synchronized (this) {
        if (toString == null) {
          toString = super.toString();
          if (toString == null) {
            throw new NullPointerException("toString() cannot return null");
          }
        }
      }
    }
    return toString;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy