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

butterknife.compiler.QualifiedId Maven / Gradle / Ivy

There is a newer version: 10.2.3
Show newest version
package butterknife.compiler;

final class QualifiedId {
  final String packageName;
  final int id;

  QualifiedId(String packageName, int id) {
    this.packageName = packageName;
    this.id = id;
  }

  @Override public String toString() {
    return "QualifiedId{packageName='" + packageName + "', id=" + id + '}';
  }

  @Override public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof QualifiedId)) return false;
    QualifiedId other = (QualifiedId) o;
    return id == other.id
        && packageName.equals(other.packageName);
  }

  @Override public int hashCode() {
    int result = packageName.hashCode();
    result = 31 * result + id;
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy