Initial commit
This commit is contained in:
37
sources/com/squareup/haha/perflib/Field.java
Normal file
37
sources/com/squareup/haha/perflib/Field.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.squareup.haha.perflib;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class Field {
|
||||
private final String mName;
|
||||
private final Type mType;
|
||||
|
||||
public Field(Type type, String str) {
|
||||
this.mType = type;
|
||||
this.mName = str;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof Field)) {
|
||||
return false;
|
||||
}
|
||||
Field field = (Field) obj;
|
||||
return this.mType == field.mType && this.mName.equals(field.mName);
|
||||
}
|
||||
|
||||
public final String getName() {
|
||||
return this.mName;
|
||||
}
|
||||
|
||||
public final Type getType() {
|
||||
return this.mType;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return Arrays.hashCode(new Object[]{this.mType, this.mName});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user