List of usage examples for java.util Collections unmodifiableCollection
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c)
From source file:de.xirp.plugin.PluginLoader.java
/** * Gets information about all the found plugins * //from w ww . jav a2 s . co m * @return Information about found plugins * @see #searchPlugins(PluginManager) */ protected static Collection<PluginInfo> getPlugins() { return Collections.unmodifiableCollection(plugins.values()); }
From source file:com.all.download.manager.search.SearcherManager.java
@PostConstruct public void initialize() { if (!searcherCollection.isEmpty()) { this.searcherCollection = Collections.unmodifiableCollection(searcherCollection); log.info("Found managed searchers: " + searcherCollection); }/* w w w.j a va 2s . c o m*/ }
From source file:de.btobastian.javacord.ImplDiscordAPI.java
@Override public Collection<User> getUsers() { return Collections.unmodifiableCollection(users.values()); }
From source file:com.ikanow.aleph2.core.shared.services.MultiDataService.java
/** Returns a list of CRUD data writers that don't have a batch writer * @return/*from w w w.jav a 2s . com*/ */ public Collection<IDataWriteService<JsonNode>> getCrudWriters() { return Collections.unmodifiableCollection(_all_cruds.keySet()); }
From source file:com.pongasoft.kiwidoc.model.ClassModel.java
/** * @return all subclasses from this library *//* ww w. ja v a 2 s.c o m*/ public Collection<ClassDefinitionModel> getAllLibrarySubclasses() { return Collections.unmodifiableCollection(_allLibrarySubclasses); }
From source file:com.all.download.manager.download.DownloaderManager.java
@PostConstruct void validateDownloaderPriorities() { log.info("Found managed downloaders: " + managedDownloaders); if (managedDownloaders.isEmpty()) { throw new IllegalArgumentException("No managed downloaders found"); }/*from ww w. jav a 2 s . c o m*/ Set<Integer> priorities = new HashSet<Integer>(); checkPrioritiesAreNotRepeated(priorities); checkPrioritiesAreSequentialSartingAtZero(priorities); this.managedDownloaders = Collections.unmodifiableCollection(managedDownloaders); }
From source file:com.ikanow.aleph2.core.shared.services.MultiDataService.java
/** Returns a list of data providers * @return/*from w ww . ja va 2 s .co m*/ */ public Collection<IDataServiceProvider> getDataServices() { return Collections.unmodifiableCollection(_services.keySet()); }
From source file:com.att.research.xacml.admin.model.GitRepositoryContainer.java
@Override public Collection<File> rootItemIds() { File[] f;/*from w w w . ja v a 2 s . co m*/ // in single root case we use children if (roots.length == 1) { if (filter != null) { f = roots[0].listFiles(filter); } else { f = roots[0].listFiles(); } } else { f = roots; } if (f == null) { return Collections.unmodifiableCollection(new LinkedList<File>()); } final List<File> l = Arrays.asList(f); Collections.sort(l); return Collections.unmodifiableCollection(l); }
From source file:com.all.download.manager.share.SharerManager.java
@PostConstruct @SuppressWarnings("unchecked") public void initialize() { if (!sharerCollection.isEmpty()) { log.info("Using a thread pool of " + CONCURRENT_SHARE_THREADS); log.info("Found managed sharers: " + sharerCollection); this.sharerCollection = Collections.unmodifiableCollection(sharerCollection); for (ManagedSharer managedSharer : sharerCollection) { managedSharer.addSharerListener(this); }/*from ww w . j a v a2 s. co m*/ } else { this.sharerCollection = Collections.EMPTY_LIST; } }
From source file:net.sourceforge.processdash.ui.web.reports.RadarPlot.java
/** * Returns a collection of the section keys (or categories) in the dataset. * * @return the categories./* www . ja v a 2s . c o m*/ */ public Collection getKeys() { if (dataset != null) return Collections.unmodifiableCollection(dataset.getKeys()); else return null; }