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

com.google.errorprone.bugpatterns.apidiff.AutoValue_ApiDiff_ClassMemberKey Maven / Gradle / Ivy

There is a newer version: 2.30.0
Show newest version
package com.google.errorprone.bugpatterns.apidiff;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ApiDiff_ClassMemberKey extends ApiDiff.ClassMemberKey {

  private final String identifier;

  private final String descriptor;

  AutoValue_ApiDiff_ClassMemberKey(
      String identifier,
      String descriptor) {
    if (identifier == null) {
      throw new NullPointerException("Null identifier");
    }
    this.identifier = identifier;
    if (descriptor == null) {
      throw new NullPointerException("Null descriptor");
    }
    this.descriptor = descriptor;
  }

  @Override
  public String identifier() {
    return identifier;
  }

  @Override
  public String descriptor() {
    return descriptor;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ApiDiff.ClassMemberKey) {
      ApiDiff.ClassMemberKey that = (ApiDiff.ClassMemberKey) o;
      return this.identifier.equals(that.identifier())
          && this.descriptor.equals(that.descriptor());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= identifier.hashCode();
    h$ *= 1000003;
    h$ ^= descriptor.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy