List of usage examples for java.util Collections unmodifiableSet
public static <T> Set<T> unmodifiableSet(Set<? extends T> s)
From source file:org.web4thejob.web.dialog.DefaultValueListDialog.java
@Override public Set<CommandEnum> getSupportedCommands() { Set<CommandEnum> supported = new HashSet<CommandEnum>(2); supported.add(CommandEnum.ADD);/*from w ww .j av a2s .c o m*/ supported.add(CommandEnum.EDIT); supported.add(CommandEnum.REMOVE); return Collections.unmodifiableSet(supported); }
From source file:com.hp.alm.ali.idea.ui.MultiValueSelectorLabel.java
public Set<String> getSelectedValues() { return Collections.unmodifiableSet(selectedItems); }
From source file:edu.ur.ir.index.DefaultExcelTextExtractor.java
/** * Return the file type extensions this extractor can handle * /* w w w . j a v a2s . c o m*/ * @see edu.ur.ir.index.FileTextExtractor#getAcceptableFileTypeExtensions() */ public Set<String> getAcceptableFileTypeExtensions() { return Collections.unmodifiableSet(acceptableFileTypeExtensions); }
From source file:com.miko.demo.mongo.model.EntityA.java
public Set<EntityB> getEntityBSet() { return Collections.unmodifiableSet(entityBSet); }
From source file:com.opengamma.engine.view.calc.LiveDataDeltaCalculator.java
public Set<DependencyNode> getUnchangedNodes() { if (!_done) { throw new IllegalStateException("Call computeDelta() first"); }// ww w .j a va 2 s .c o m return Collections.unmodifiableSet(_unchangedNodes); }
From source file:grails.plugin.cache.ehcache.GrailsEhcacheCacheManager.java
public Collection<String> getCacheNames() { return Collections.unmodifiableSet(cacheNames); }
From source file:me.m1key.audiolicious.domain.entities.Album.java
public Set<Song> getSongs() { return Collections.unmodifiableSet(songs); }
From source file:org.apache.solr.client.solrj.impl.DelegationTokenHttpSolrClient.java
@Override public void setQueryParams(Set<String> queryParams) { queryParams = queryParams == null//from www. j a v a2 s.c om ? Collections.unmodifiableSet(new HashSet<String>(Arrays.asList(DELEGATION_TOKEN_PARAM))) : queryParams; if (!queryParams.contains(DELEGATION_TOKEN_PARAM)) { queryParams = new HashSet<String>(queryParams); queryParams.add(DELEGATION_TOKEN_PARAM); queryParams = Collections.unmodifiableSet(queryParams); } super.setQueryParams(queryParams); }
From source file:de.dhke.projects.cutil.collections.WeightedSet.java
@Override public Set<K> keySet() { return Collections.unmodifiableSet(_backend.keySet()); }
From source file:edu.uci.ics.jung.graph.impl.SimpleSparseVertex.java
/** * @see Vertex#getPredecessors()//from w w w .ja v a2 s .c o m */ public Set getPredecessors() { Collection preds = CollectionUtils.union(getPredsToInEdges().keySet(), getNeighborsToEdges().keySet()); return Collections.unmodifiableSet(new HashSet(preds)); }