what-the-bank/sources/com/google/firebase/platforminfo/GlobalLibraryVersionRegistr...

40 lines
1.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.platforminfo;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/* loaded from: classes.dex */
public class GlobalLibraryVersionRegistrar {
private static volatile GlobalLibraryVersionRegistrar INSTANCE;
private final Set<LibraryVersion> infos = new HashSet();
GlobalLibraryVersionRegistrar() {
}
/* JADX INFO: Access modifiers changed from: package-private */
public Set<LibraryVersion> getRegisteredVersions() {
Set<LibraryVersion> unmodifiableSet;
synchronized (this.infos) {
unmodifiableSet = Collections.unmodifiableSet(this.infos);
}
return unmodifiableSet;
}
public static GlobalLibraryVersionRegistrar getInstance() {
GlobalLibraryVersionRegistrar globalLibraryVersionRegistrar;
GlobalLibraryVersionRegistrar globalLibraryVersionRegistrar2 = INSTANCE;
if (globalLibraryVersionRegistrar2 != null) {
return globalLibraryVersionRegistrar2;
}
synchronized (GlobalLibraryVersionRegistrar.class) {
globalLibraryVersionRegistrar = INSTANCE;
if (globalLibraryVersionRegistrar == null) {
globalLibraryVersionRegistrar = new GlobalLibraryVersionRegistrar();
INSTANCE = globalLibraryVersionRegistrar;
}
}
return globalLibraryVersionRegistrar;
}
}