List of usage examples for java.util Collections unmodifiableCollection
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c)
From source file:com.codelanx.codelanxlib.command.CommandNode.java
/** * Returns all subcommands as a {@link Collection} * * @since 0.0.1//from ww w . j a v a2s.c om * @version 0.0.1 * * @return A {@link Collection} of all registered {@link CommandNode} */ public final Collection<CommandNode<? extends Plugin>> getChildren() { return Collections.unmodifiableCollection(this.subcommands.values()); }
From source file:de.catma.repository.db.SourceDocumentHandler.java
Collection<SourceDocument> getSourceDocuments() {
return Collections.unmodifiableCollection(sourceDocumentsByID.values());
}
From source file:me.st28.flexseries.flexcore.plugin.FlexPlugin.java
/** * @return a read-only collection of all of the registered modules for this plugin. *///from w ww . j a va2 s. c o m public final Collection<FlexModule> getModules() { return Collections.unmodifiableCollection(modules.values()); }
From source file:magma.agent.worldmodel.impl.GlobalMap.java
public Collection<ILandmark> getLandmarks() { return Collections.unmodifiableCollection(landmarks.values()); }
From source file:azkaban.executor.ExecutorManager.java
@Override public Collection<Executor> getAllActiveExecutors() { return Collections.unmodifiableCollection(activeExecutors); }
From source file:net.ymate.platform.persistence.base.EntityMeta.java
/** * @return ???/*from w w w. jav a 2 s . com*/ */ public Collection<PropertyMeta> getProperties() { return Collections.unmodifiableCollection(this.__properties.values()); }
From source file:net.ymate.platform.persistence.base.EntityMeta.java
public Collection<String> getPropertyNames() { return Collections.unmodifiableCollection(this.__properties.keySet()); }
From source file:net.ymate.platform.persistence.base.EntityMeta.java
/** * @return ??? */ public Collection<IndexMeta> getIndexes() { return Collections.unmodifiableCollection(this.__indexes.values()); }
From source file:edu.memphis.ccrg.lida.proceduralmemory.ProceduralMemoryImpl.java
@Override public Collection<Scheme> getSchemes() { return Collections.unmodifiableCollection(schemeSet); }
From source file:es.caib.zkib.jxpath.util.BasicTypeConverter.java
/** * Get an unmodifiable version of a collection. * @param collection to wrap//from w w w . j ava 2s .c o m * @return Collection */ protected Collection unmodifiableCollection(Collection collection) { if (collection instanceof List) { return Collections.unmodifiableList((List) collection); } if (collection instanceof SortedSet) { return Collections.unmodifiableSortedSet((SortedSet) collection); } if (collection instanceof Set) { return Collections.unmodifiableSet((Set) collection); } return Collections.unmodifiableCollection(collection); }