List of usage examples for java.util Collections unmodifiableCollection
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c)
From source file:com.genericconf.bbbgateway.domain.Meeting.java
public Collection<Attendee> getWaiters() { return Collections.unmodifiableCollection(waiters.values()); }
From source file:org.openinfinity.sso.identityprovisioning.bpmn.ProcessEngineBridgeImpl.java
@Log(level = LogLevel.INFO) @AuditTrail/*from w w w. j ava 2 s . co m*/ public Collection<org.openinfinity.sso.identityprovisioning.bpmn.Task> queryForAllUserTasks() { SecurityContext securityContext = SecurityContextHolder.getContext(); Authentication authentication = securityContext.getAuthentication(); IdentityService identityService = processEngine.getIdentityService(); identityService.setAuthenticatedUserId(authentication.getName()); TaskService taskService = processEngine.getTaskService(); List<Task> tasks = taskService.createTaskQuery().list(); Collection<org.openinfinity.sso.identityprovisioning.bpmn.Task> simpleTasks = mapTasks(tasks); return Collections.unmodifiableCollection(simpleTasks); }
From source file:org.red5.server.ClientRegistry.java
/** * Return collection of clients//from w w w. j a va2s . c o m * * @return Collection of clients */ @SuppressWarnings("unchecked") protected Collection<IClient> getClients() { if (!hasClients()) { // avoid creating new Collection object if no clients exist. return Collections.EMPTY_SET; } return Collections.unmodifiableCollection(clients.values()); }
From source file:edu.uci.ics.jung.graph.UndirectedSparseGraph.java
public Collection<V> getNeighbors(V vertex) { if (!containsVertex(vertex)) return null; return Collections.unmodifiableCollection(vertices.get(vertex).keySet()); }
From source file:dstrelec.nats.config.NatsListenerEndpointRegistry.java
/** * Return the managed {@link NatsListenerContainer} instance(s). * @return the managed {@link NatsListenerContainer} instance(s). *//*from w w w.ja va2 s .c o m*/ public Collection<NatsListenerContainer> getListenerContainers() { return Collections.unmodifiableCollection(this.listenerContainers.values()); }
From source file:nl.salp.warcraft4j.casc.cdn.local.LocalIndexFile.java
/** * Get the parsed index entries from the index file. * * @return The entries.//from ww w . ja v a 2 s .com */ public Collection<IndexEntry> getEntries() { return Collections.unmodifiableCollection(entries.values()); }
From source file:de.ailis.threedee.assets.Assets.java
/** * Returns all loaded textures./*from ww w. j av a 2s . c o m*/ * * @return The loaded textures. Never null. May be empty. */ public Collection<Texture> getTextures() { return Collections.unmodifiableCollection(this.textures.values()); }
From source file:cloudfoundry.norouter.f5.client.VirtualServer.java
@JsonCreator VirtualServer(@JsonProperty("name") String name, @JsonProperty("description") String description, @JsonProperty("destination") String destination, @JsonProperty("mask") String mask, @JsonProperty("ipProtocol") String ipProtocol, @JsonProperty("rules") Collection<String> rules, @JsonProperty("sourceAddressTranslation") SourceAddressTranslation sourceAddressTranslation, @JsonProperty("profilesReference") SubCollection<Profile> profiles, @JsonProperty("pool") String pool, @JsonProperty("source") String source) { this.name = name; this.description = description; this.destination = destination; this.mask = mask; this.ipProtocol = ipProtocol; this.rules = rules == null ? Collections.emptyList() : Collections.unmodifiableCollection(new ArrayList<>(rules)); this.sourceAddressTranslation = sourceAddressTranslation; this.profiles = profiles; this.pool = pool; this.source = source; validate();/*www .j a va 2s.co m*/ }
From source file:com.genericconf.bbbgateway.domain.Meeting.java
public Collection<Attendee> getAttendees() { return Collections.unmodifiableCollection(attendees.values()); }
From source file:edu.sabanciuniv.sentilab.sare.models.base.documentStore.PersistentDocumentStore.java
/** * Gets the derived stores of this store. * @return the {@link Iterable} of {@link PersistentDocumentStore} objects that derive from this store. *///from w w w. ja v a 2 s . c o m public Iterable<PersistentDocumentStore> getDerivedStores() { if (this.derivedStores == null) { this.derivedStores = Lists.newArrayList(); } return Collections.unmodifiableCollection(this.derivedStores); }