List of usage examples for java.util Collections unmodifiableCollection
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c)
From source file:com.datatorrent.stram.StreamingContainerManager.java
public Collection<ContainerInfo> getCompletedContainerInfo() { return Collections.unmodifiableCollection(completedContainers.values()); }
From source file:freemind.controller.Controller.java
public static Collection getPropertyChangeListeners() { return Collections.unmodifiableCollection(propertyChangeListeners); }
From source file:com.datatorrent.stram.plan.logical.LogicalPlan.java
public Collection<OperatorMeta> getAllOperators() { return Collections.unmodifiableCollection(this.operators.values()); }
From source file:com.datatorrent.stram.plan.logical.LogicalPlan.java
public Collection<ModuleMeta> getAllModules() { return Collections.unmodifiableCollection(this.modules.values()); }
From source file:com.datatorrent.stram.plan.logical.LogicalPlan.java
public Collection<StreamMeta> getAllStreams() { return Collections.unmodifiableCollection(this.streams.values()); }
From source file:l2next.gameserver.model.Player.java
/** * @return a table containing all L2RecipeList of the L2Player.<BR> <BR> *//*w w w .j a va2 s . c o m*/ public Collection<Recipe> getDwarvenRecipeBook() { return Collections.unmodifiableCollection(_recipebook.valueCollection()); }
From source file:l2next.gameserver.model.Player.java
public Collection<Recipe> getCommonRecipeBook() { return Collections.unmodifiableCollection(_commonrecipebook.valueCollection()); }
From source file:net.droidsolutions.droidcharts.core.plot.CategoryPlot.java
/** * Returns a collection of domain markers for a particular renderer and * layer.//from w w w . ja va 2s . c o m * * @param index * the renderer index. * @param layer * the layer. * * @return A collection of markers (possibly <code>null</code>). */ public Collection getDomainMarkers(int index, Layer layer) { Collection result = null; Integer key = new Integer(index); if (layer == Layer.FOREGROUND) { result = (Collection) this.foregroundDomainMarkers.get(key); } else if (layer == Layer.BACKGROUND) { result = (Collection) this.backgroundDomainMarkers.get(key); } if (result != null) { result = Collections.unmodifiableCollection(result); } return result; }
From source file:net.droidsolutions.droidcharts.core.plot.CategoryPlot.java
/** * Returns a collection of range markers for a particular renderer and * layer.// w w w . ja v a 2 s .c om * * @param index * the renderer index. * @param layer * the layer. * * @return A collection of markers (possibly <code>null</code>). */ public Collection getRangeMarkers(int index, Layer layer) { Collection result = null; Integer key = new Integer(index); if (layer == Layer.FOREGROUND) { result = (Collection) this.foregroundRangeMarkers.get(key); } else if (layer == Layer.BACKGROUND) { result = (Collection) this.backgroundRangeMarkers.get(key); } if (result != null) { result = Collections.unmodifiableCollection(result); } return result; }
From source file:com.vmware.identity.idm.server.IdentityManager.java
/** * Retrieves the security domains supported by a provider * * @param tenantName Name of tenant, non-null non-empty, required * @param providerName Name of identity provider * @return Collection of domains, Empty collection if no provider found * @throws Exception/* ww w . j a v a2s. c o m*/ */ private Collection<SecurityDomain> getSecurityDomains(String tenantName, String providerName) throws Exception { try { ValidateUtil.validateNotEmpty(tenantName, "Tenant name"); ValidateUtil.validateNotEmpty(providerName, "Provider name"); TenantInformation tenantInfo = findTenant(tenantName); ServerUtils.validateNotNullTenant(tenantInfo, tenantName); // The provider name is the fully qualified domain name IIdentityProvider provider = tenantInfo.findProviderByName(providerName); if (provider != null) { return Collections.unmodifiableCollection(provider.getDomains()); } } catch (Exception ex) { logger.error(String.format("Failed to get security domains for provider [%s] in tenant [%s]", providerName, tenantName)); throw ex; } return Collections.emptySet(); }