List of usage examples for java.util Collections unmodifiableCollection
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c)
From source file:edu.uci.ics.jung.graph.DirectedSparseGraph.java
public Collection<V> getVertices() { return Collections.unmodifiableCollection(vertices.keySet()); }
From source file:com.act.biointerpretation.networkanalysis.MetabolismNetwork.java
/** * Get all edges from the graph.//from w w w .jav a 2 s . c o m * * @return An unmodifiable collection of the graph's edges. */ public Collection<NetworkEdge> getEdges() { return Collections.unmodifiableCollection(edges); }
From source file:com.codelanx.codelanxlib.inventory.iinterface.InventoryInterface.java
/** * Returns all {@link InventoryPanel} objects controlled by this interface * /* www.jav a 2 s. co m*/ * @since 0.0.1 * @version 0.0.1 * * @return Any {@link InventoryPanel} objects in use */ public Collection<? extends InventoryPanel> getPanels() { return Collections.unmodifiableCollection(this.panels.values()); }
From source file:net.avalonrealms.plugins.core.Core.java
public Collection<CoreAddon> getAddons() { return Collections.unmodifiableCollection(coreAddons.values()); }
From source file:com.edgenius.wiki.security.Policy.java
/** * /*from w ww . ja v a 2 s .c o m*/ * @return ConfigAttributeDefinition is immutable collection. */ public Collection<ConfigAttribute> getAttributeDefinition() { return Collections.unmodifiableCollection(attributes); }
From source file:org.geppetto.samplesimulation.SimulationServlet.java
private Collection<SimDataInbound> getConnections() { return Collections.unmodifiableCollection(_connections.values()); }
From source file:graph.DependencyDirectedSparceMultiGraph.java
public Collection<V> getNeighbors(V vertex) { Collection<V> neighbors = new HashSet<V>(); for (E edge : getIncoming_internal(vertex)) neighbors.add(this.getSource(edge)); for (E edge : getOutgoing_internal(vertex)) neighbors.add(this.getDest(edge)); return Collections.unmodifiableCollection(neighbors); }
From source file:edu.ksu.cis.indus.staticanalyses.concurrency.escape.SharedWriteBasedEquivalence.java
/** * Retrieves the shared writes that belong to the same equivalence class as the given shared write. * //www. ja v a2s . c o m * @param pair of interest. * @return a collection of lock acquisition. * @pre pair.getFirst().getLeftOp().oclIsKindOf(InstanceFieldRef) or * pair.getFirst().getLeftOp().oclIsKindOf(StaticFieldRef) or pair.getFirst().getLeftOp().oclIsKindOf(ArrayRef) * @post result != null * @post result->forall(o | */ public Collection<Pair<AssignStmt, SootMethod>> getSharedWritesInEquivalenceClassOf( final Pair<AssignStmt, SootMethod> pair) { return Collections.unmodifiableCollection(MapUtils.queryCollection(write2writes, pair)); }
From source file:es.ucm.fdi.dalgs.domain.User.java
@Override public Collection<? extends GrantedAuthority> getAuthorities() { return Collections.unmodifiableCollection(this.roles); }
From source file:org.geppetto.samplesimulation.SimulationServlet.java
private Collection<SessionContext> getSimulations() { return Collections.unmodifiableCollection(_simulations.values()); }