butterknife.compiler.QualifiedId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of butterknife-compiler Show documentation
Show all versions of butterknife-compiler Show documentation
Field and method binding for Android views.
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