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 infos = new HashSet(); GlobalLibraryVersionRegistrar() { } /* JADX INFO: Access modifiers changed from: package-private */ public Set getRegisteredVersions() { Set 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; } }