List of usage examples for java.util Collections unmodifiableSet
public static <T> Set<T> unmodifiableSet(Set<? extends T> s)
From source file:com.datatorrent.stram.engine.StreamContext.java
/** * * @param mask/*from w ww. j a v a 2 s .c om*/ * @param partitionKeys */ public void setPartitions(int mask, Set<Integer> partitionKeys) { this.mask = mask; this.partitions = partitionKeys == null ? null : Collections.unmodifiableSet(partitionKeys); }
From source file:com.espertech.esper.core.service.StatementEventTypeRefImpl.java
public Set<String> getStatementNamesForType(String eventTypeName) { mapLock.acquireReadLock();//from ww w .j a va 2s .c o m try { Set<String> types = typeToStmt.get(eventTypeName); if (types == null) { return Collections.EMPTY_SET; } return Collections.unmodifiableSet(types); } finally { mapLock.releaseReadLock(); } }
From source file:cn.bjfu.springdao.jpa.domain.order.Order.java
/** * Returns all {@link LineItem}s currently belonging to the {@link Order}. * /* w w w . j a v a 2 s . c o m*/ * @return */ public Set<LineItem> getLineItems() { return Collections.unmodifiableSet(lineItems); }
From source file:com.baidu.rigel.biplatform.ma.model.meta.FactTableMetaDefine.java
/** * stream api * @return */ public Set<ColumnMetaDefine> getColumnList() { return Collections.unmodifiableSet(columns); }
From source file:fr.mby.portal.coreimpl.acl.BasicAclManager.java
@Override public Set<IRole> retrievePrincipalRoles(final Principal principal) throws PrincipalNotFoundException { Assert.notNull(principal, "No Principal supplied !"); final Set<IRole> roles = this.aclDao.findPrincipalRoles(principal); return Collections.unmodifiableSet(roles); }
From source file:com.opengamma.engine.test.MockFunction.java
public Set<ValueRequirement> getRequirements() { return Collections.unmodifiableSet(_requirements); }
From source file:hr.fer.spocc.grammar.Grammar.java
public Set<Variable<T>> getVariables() { return Collections.unmodifiableSet(variables); }
From source file:org.suren.autotest.web.framework.data.SimpleDynamicData.java
@Override public Set<String> allFormats() { return Collections.unmodifiableSet(formatSet); }
From source file:com.enprowess.migration.bulkimport.ImportableItem.java
/** * This function is used to get versioned content and metadata * @return a set of versioned content and metadata */// ww w. j ava 2s . c o m public Set<VersionedContentAndMetadata> getVersionEntries() { return Collections.unmodifiableSet(versionEntries); }
From source file:org.zaizi.alfresco.publishing.marklogic.MarkLogicChannelType.java
/** * Sets the supported mime types./*from ww w .ja va 2 s . co m*/ * * @param mimeTypes the new supported mime types */ public void setSupportedMimeTypes(final Set<String> mimeTypes) { supportedMimeTypes = Collections.unmodifiableSet(new TreeSet<String>(mimeTypes)); }