OriginsSnapshot(String appId, Collection<Origin> activeOrigins, Collection<Origin> inactiveOrigins, Collection<Origin> disabledOrigins) { this.appId = id(appId); this.activeOrigins = withAppId(activeOrigins, appId); this.inactiveOrigins = withAppId(inactiveOrigins, appId); this.disabledOrigins = withAppId(disabledOrigins, appId); mapOriginsById(); }