Files
rr3-apk/decompiled-community/sources/com/google/firebase/components/LazySet.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

63 lines
1.8 KiB
Java

package com.google.firebase.components;
import com.google.firebase.inject.Provider;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
/* loaded from: classes3.dex */
public class LazySet implements Provider {
public volatile Set actualSet = null;
public volatile Set providers = Collections.newSetFromMap(new ConcurrentHashMap());
public LazySet(Collection collection) {
this.providers.addAll(collection);
}
public static LazySet fromCollection(Collection collection) {
return new LazySet((Set) collection);
}
@Override // com.google.firebase.inject.Provider
public Set get() {
if (this.actualSet == null) {
synchronized (this) {
try {
if (this.actualSet == null) {
this.actualSet = Collections.newSetFromMap(new ConcurrentHashMap());
updateSet();
}
} finally {
}
}
}
return Collections.unmodifiableSet(this.actualSet);
}
public synchronized void add(Provider provider) {
try {
if (this.actualSet == null) {
this.providers.add(provider);
} else {
this.actualSet.add(provider.get());
}
} catch (Throwable th) {
throw th;
}
}
public final synchronized void updateSet() {
try {
Iterator it = this.providers.iterator();
while (it.hasNext()) {
this.actualSet.add(((Provider) it.next()).get());
}
this.providers = null;
} catch (Throwable th) {
throw th;
}
}
}