List of usage examples for java.util Collections unmodifiableCollection
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c)
From source file:nl.salp.warcraft4j.casc.cdn.CdnCascContext.java
/** * Get all index entries.//from ww w . j av a 2 s . c o m * * @return The index entries. */ public final Collection<IndexEntry> getIndexEntries() { return Collections.unmodifiableCollection(getIndex().getEntries()); }
From source file:net.ontopia.topicmaps.impl.basic.index.ClassInstanceIndex.java
@Override public Collection<TopicIF> getOccurrenceTypes() { // Create new collection Collection<TopicIF> result = new ArrayList<TopicIF>(occurs.keySet()); result.remove(null);//from www . jav a 2 s .c o m return Collections.unmodifiableCollection(result); }
From source file:com.qpark.eip.core.spring.AbstractPlaceholderConfigurer.java
/** * @see java.util.Map#values()/*from w w w . ja v a2 s . c om*/ */ @Override public Collection<String> values() { return Collections.unmodifiableCollection(this.properties.values()); }
From source file:es.osoco.grails.plugins.otp.access.AbstractMultipleVoterFilterInvocationDefinition.java
protected void compileAndStoreMapping(final String pattern, final List<String> tokens) { Object key = getUrlMatcher().compile(pattern); Collection<ConfigAttribute> configAttributes = buildConfigAttributes(tokens); Collection<ConfigAttribute> replaced = storeMapping(key, Collections.unmodifiableCollection(configAttributes)); if (replaced != null) { _log.warn("replaced rule for '" + key + "' with roles " + replaced + " with roles " + configAttributes); }/*from w w w. j ava 2 s. c o m*/ }
From source file:it.geosolutions.geobatch.catalog.impl.BaseCatalog.java
public Collection<CatalogListener> getListeners() { return Collections.unmodifiableCollection(listeners); }
From source file:cl.ucn.disc.zoome.zui.layout.OrderedSparseGraph.java
public Collection<E> getIncidentEdges(V vertex) { if (!containsVertex(vertex)) return null; Collection<E> incident = new HashSet<E>(vertex_maps.get(vertex)[INCOMING].values()); incident.addAll(vertex_maps.get(vertex)[OUTGOING].values()); incident.addAll(vertex_maps.get(vertex)[INCIDENT].values()); return Collections.unmodifiableCollection(incident); }
From source file:net.ontopia.topicmaps.impl.basic.index.ClassInstanceIndex.java
@Override public Collection<TopicIF> getAssociationTypes() { // Create new collection Collection<TopicIF> result = new ArrayList<TopicIF>(assocs.keySet()); result.remove(null);/* w w w . j av a 2 s . com*/ return Collections.unmodifiableCollection(result); }
From source file:edu.ksu.cis.indus.staticanalyses.impl.ClassHierarchy.java
/** * @see edu.ksu.cis.indus.interfaces.IClassHierarchy#getInterfaces() *//*from w w w. j av a 2 s .c om*/ public Collection<SootClass> getInterfaces() { return Collections.unmodifiableCollection(interfaces); }
From source file:com.opengamma.analytics.financial.greeks.PDEResultCollection.java
public Collection<double[]> values() { return Collections.unmodifiableCollection(_gridDataMap.values()); }
From source file:com.ponysdk.ui.server.basic.PListBox.java
@Override public Collection<PChangeHandler> getChangeHandlers() { return Collections.unmodifiableCollection(handlers); }