Files
rr3-apk/decompiled-community/sources/com/google/firebase/encoders/FieldDescriptor.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

81 lines
2.2 KiB
Java

package com.google.firebase.encoders;
import java.lang.annotation.Annotation;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes3.dex */
public final class FieldDescriptor {
public final String name;
public final Map properties;
public String getName() {
return this.name;
}
public FieldDescriptor(String str, Map map) {
this.name = str;
this.properties = map;
}
public Annotation getProperty(Class cls) {
return (Annotation) this.properties.get(cls);
}
public static FieldDescriptor of(String str) {
return new FieldDescriptor(str, Collections.emptyMap());
}
public static Builder builder(String str) {
return new Builder(str);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof FieldDescriptor)) {
return false;
}
FieldDescriptor fieldDescriptor = (FieldDescriptor) obj;
return this.name.equals(fieldDescriptor.name) && this.properties.equals(fieldDescriptor.properties);
}
public int hashCode() {
return (this.name.hashCode() * 31) + this.properties.hashCode();
}
public String toString() {
return "FieldDescriptor{name=" + this.name + ", properties=" + this.properties.values() + "}";
}
public static final class Builder {
public final String name;
public Map properties = null;
public Builder(String str) {
this.name = str;
}
public Builder withProperty(Annotation annotation) {
if (this.properties == null) {
this.properties = new HashMap();
}
this.properties.put(annotation.annotationType(), annotation);
return this;
}
public FieldDescriptor build() {
Map unmodifiableMap;
String str = this.name;
if (this.properties == null) {
unmodifiableMap = Collections.emptyMap();
} else {
unmodifiableMap = Collections.unmodifiableMap(new HashMap(this.properties));
}
return new FieldDescriptor(str, unmodifiableMap);
}
}
}