List of usage examples for java.util Collections unmodifiableSet
public static <T> Set<T> unmodifiableSet(Set<? extends T> s)
From source file:ch.mlutz.plugins.t4e.tapestry.TapestryModule.java
public Set<TapestryHtmlElement> getComponents() { return Collections.unmodifiableSet(components); }
From source file:libepg.epg.section.sectionreconstructor.SectionReconstructorTest.java
private Set<byte[]> makeEITList() { Set<byte[]> ret = new HashSet<>(); for (int pid : pids.getPids()) { ret.addAll(new SectionReconstructor(this.getParcels().get(pid), pid).getSectionByteArrays()); }/* www . j a va 2s . c om*/ return Collections.unmodifiableSet(ret); }
From source file:com.ning.maven.plugins.duplicatefinder.ClasspathDescriptor.java
public Set getClasss() { return Collections.unmodifiableSet(classesWithElements.keySet()); }
From source file:com.github.jdye64.processors.provenance.ProvenanceEventsToPhoenix.java
@Override protected void init(final ProcessorInitializationContext context) { final List<PropertyDescriptor> descriptors = new ArrayList<>(); descriptors.add(PHOENIX_TABLE_NAME); this.descriptors = Collections.unmodifiableList(descriptors); final Set<Relationship> relationships = new HashSet<>(); relationships.add(REL_SUCCESS);// w w w .ja va2 s. com relationships.add(REL_FAILURE); this.relationships = Collections.unmodifiableSet(relationships); }
From source file:com.francetelecom.clara.cloud.logicalmodel.LogicalService.java
/** * list all ExecutionNode using this Service * /*from w ww .j av a 2 s .co m*/ * @return */ public Set<ProcessingNode> listDependentProcessingNodes() { HashSet<ProcessingNode> nodes = new HashSet<ProcessingNode>(); for (LogicalNodeServiceAssociation association : this.logicalNodeServiceAssociations) { nodes.add(association.processingNode); } return Collections.unmodifiableSet(nodes); }
From source file:org.italiangrid.storm.webdav.authz.VOMSPreAuthDetailsSource.java
private Collection<? extends GrantedAuthority> getVOMSGrantedAuthorities(HttpServletRequest request) { Set<GrantedAuthority> authorities = new HashSet<GrantedAuthority>(); for (VOMSAuthDetailsSource source : vomsAuthoritiesSources) { authorities.addAll(source.getVOMSGrantedAuthorities(request)); }//from w ww .j av a2s .c o m addSAPermissions(authorities); return Collections.unmodifiableSet(authorities); }
From source file:org.apereo.services.persondir.support.jdbc.NamedParameterJdbcPersonAttributeDao.java
@Required public void setUserAttributeNames(final Set<String> userAttributeNames) { this.userAttributeNames = Collections.unmodifiableSet(userAttributeNames); }
From source file:com.cyclopsgroup.tornado.security.impl.DefaultRuntimeUser.java
Set getRoleIds() {
return Collections.unmodifiableSet(roleIds);
}
From source file:com.exedio.cope.live.Anchor.java
Set<Modification> getModifications() {
return Collections.unmodifiableSet(modifications);
}
From source file:com.jeremydyer.nifi.ObjectDetectionProcessor.java
@Override protected void init(final ProcessorInitializationContext context) { final List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>(); descriptors.add(DETECTION_DEFINITION_JSON); this.descriptors = Collections.unmodifiableList(descriptors); final Set<Relationship> relationships = new HashSet<Relationship>(); relationships.add(REL_ORIGINAL);/*from www .j a v a 2s. co m*/ relationships.add(REL_OBJECT_DETECTED); relationships.add(REL_NO_OBJECT_DETECTED); relationships.add(REL_FAILURE); this.relationships = Collections.unmodifiableSet(relationships); //Load the OpenCV Native Library System.loadLibrary(Core.NATIVE_LIBRARY_NAME); }