mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 09:32:27 -06:00
67 lines
1.7 KiB
Java
67 lines
1.7 KiB
Java
package io.sentry.internal.gestures;
|
|
|
|
import io.sentry.util.Objects;
|
|
import java.lang.ref.WeakReference;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class UiElement {
|
|
final String className;
|
|
final String origin;
|
|
final String resourceName;
|
|
final String tag;
|
|
final WeakReference<Object> viewRef;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public enum Type {
|
|
CLICKABLE,
|
|
SCROLLABLE
|
|
}
|
|
|
|
public String getClassName() {
|
|
return this.className;
|
|
}
|
|
|
|
public String getOrigin() {
|
|
return this.origin;
|
|
}
|
|
|
|
public String getResourceName() {
|
|
return this.resourceName;
|
|
}
|
|
|
|
public String getTag() {
|
|
return this.tag;
|
|
}
|
|
|
|
public UiElement(Object obj, String str, String str2, String str3, String str4) {
|
|
this.viewRef = new WeakReference<>(obj);
|
|
this.className = str;
|
|
this.resourceName = str2;
|
|
this.tag = str3;
|
|
this.origin = str4;
|
|
}
|
|
|
|
public String getIdentifier() {
|
|
String str = this.resourceName;
|
|
return str != null ? str : (String) Objects.requireNonNull(this.tag, "UiElement.tag can't be null");
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || getClass() != obj.getClass()) {
|
|
return false;
|
|
}
|
|
UiElement uiElement = (UiElement) obj;
|
|
return Objects.equals(this.className, uiElement.className) && Objects.equals(this.resourceName, uiElement.resourceName) && Objects.equals(this.tag, uiElement.tag);
|
|
}
|
|
|
|
public Object getView() {
|
|
return this.viewRef.get();
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Objects.hash(this.viewRef, this.resourceName, this.tag);
|
|
}
|
|
}
|