List of usage examples for java.util Collections unmodifiableSet
public static <T> Set<T> unmodifiableSet(Set<? extends T> s)
From source file:com.hortonworks.iot.MyProcessor.java
@Override protected void init(final ProcessorInitializationContext context) { final List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>(); descriptors.add(PROP_TO_UPPERCASE);/*from ww w . jav a2s. c om*/ descriptors.add(PROP_BUFFER_SIZE); this.descriptors = Collections.unmodifiableList(descriptors); final Set<Relationship> relationships = new HashSet<Relationship>(); relationships.add(REL_SUCCESS); relationships.add(REL_FAILURE); this.relationships = Collections.unmodifiableSet(relationships); }
From source file:hr.fer.zemris.vhdllab.service.hierarchy.HierarchyNode.java
public Set<String> getMissingDependencies() { return Collections.unmodifiableSet(missingDependencies); }
From source file:de.decoit.simu.cbor.ifmap.metadata.singlevalue.CBORServerCapability.java
/** * Returns an immutable view of the capabilities set. * * @return Immutable set view//from w w w.ja va 2s. c o m */ public Set<String> getCapabilities() { return Collections.unmodifiableSet(this.capabilities); }
From source file:hr.fer.spocc.grammar.Grammar.java
public Set<Symbol<T>> getRightSideSymbols() { return Collections.unmodifiableSet(rightSideSymbolMap.keySet()); }
From source file:com.zimbra.cs.mailclient.smtp.SmtpConnection.java
public Set<String> getInvalidRecipients() { return Collections.unmodifiableSet(invalidRecipients); }
From source file:com.github.rvesse.airline.utils.AirlineUtils.java
public static <T> Set<T> unmodifiableSetCopy(Set<T> set) { if (set == null) return Collections.emptySet(); return Collections.unmodifiableSet(new LinkedHashSet<T>(set)); }
From source file:org.jasig.services.persondir.support.jdbc.NamedParameterJdbcPersonAttributeDao.java
public void setAvailableQueryAttributes(Set<String> availableQueryAttributes) { this.availableQueryAttributes = Collections.unmodifiableSet(availableQueryAttributes); }
From source file:com.qpark.eip.core.spring.AbstractPlaceholderConfigurer.java
/** * @see java.util.Map#entrySet()/*from ww w. ja va 2 s . c o m*/ */ @Override public Set<java.util.Map.Entry<String, String>> entrySet() { return Collections.unmodifiableSet(this.properties.entrySet()); }
From source file:fsu.wdl.processors.customProcessor.MyProcessor.java
@Override protected void init(final ProcessorInitializationContext context) { final List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>(); descriptors.add(Interval);//from w w w . j a va2 s .c o m descriptors.add(DataField); this.descriptors = Collections.unmodifiableList(descriptors); final Set<Relationship> temprelationships = new HashSet<Relationship>(); temprelationships.add(REL_SUCCESS); temprelationships.add(REL_FAILURE); this.relationships = Collections.unmodifiableSet(temprelationships); }
From source file:com.googlesource.gerrit.plugins.rabbitmq.config.PluginProperties.java
@Override public Set<Section> getSections() { return Collections.unmodifiableSet(sections); }