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

com.google.javascript.jscomp.lint.AutoValue_CheckRequiresSorted_DestructuringBinding Maven / Gradle / Ivy

Go to download

Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.

There is a newer version: v20240317
Show newest version


package com.google.javascript.jscomp.lint;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_CheckRequiresSorted_DestructuringBinding extends CheckRequiresSorted.DestructuringBinding {

  private final String exportedName;
  private final String localName;
  private final boolean isShorthandProperty;

  AutoValue_CheckRequiresSorted_DestructuringBinding(
      String exportedName,
      String localName,
      boolean isShorthandProperty) {
    if (exportedName == null) {
      throw new NullPointerException("Null exportedName");
    }
    this.exportedName = exportedName;
    if (localName == null) {
      throw new NullPointerException("Null localName");
    }
    this.localName = localName;
    this.isShorthandProperty = isShorthandProperty;
  }

  @Override
  String exportedName() {
    return exportedName;
  }

  @Override
  String localName() {
    return localName;
  }

  @Override
  boolean isShorthandProperty() {
    return isShorthandProperty;
  }

  @Override
  public String toString() {
    return "DestructuringBinding{"
         + "exportedName=" + exportedName + ", "
         + "localName=" + localName + ", "
         + "isShorthandProperty=" + isShorthandProperty
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CheckRequiresSorted.DestructuringBinding) {
      CheckRequiresSorted.DestructuringBinding that = (CheckRequiresSorted.DestructuringBinding) o;
      return (this.exportedName.equals(that.exportedName()))
           && (this.localName.equals(that.localName()))
           && (this.isShorthandProperty == that.isShorthandProperty());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy