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

com.google.javascript.jscomp.AutoValue_JsMessage_PlaceholderReference Maven / Gradle / Ivy



package com.google.javascript.jscomp;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_JsMessage_PlaceholderReference extends JsMessage.PlaceholderReference {

  private final String storedPlaceholderName;
  private final boolean canonicalFormat;

  AutoValue_JsMessage_PlaceholderReference(
      String storedPlaceholderName,
      boolean canonicalFormat) {
    if (storedPlaceholderName == null) {
      throw new NullPointerException("Null storedPlaceholderName");
    }
    this.storedPlaceholderName = storedPlaceholderName;
    this.canonicalFormat = canonicalFormat;
  }

  @Override
  public String getStoredPlaceholderName() {
    return storedPlaceholderName;
  }

  @Override
  public boolean isCanonicalFormat() {
    return canonicalFormat;
  }

  @Override
  public String toString() {
    return "PlaceholderReference{"
         + "storedPlaceholderName=" + storedPlaceholderName + ", "
         + "canonicalFormat=" + canonicalFormat
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof JsMessage.PlaceholderReference) {
      JsMessage.PlaceholderReference that = (JsMessage.PlaceholderReference) o;
      return (this.storedPlaceholderName.equals(that.getStoredPlaceholderName()))
           && (this.canonicalFormat == that.isCanonicalFormat());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= storedPlaceholderName.hashCode();
    h$ *= 1000003;
    h$ ^= canonicalFormat ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy