List of usage examples for java.util Collections unmodifiableMap
public static <K, V> Map<K, V> unmodifiableMap(Map<? extends K, ? extends V> m)
From source file:edu.monash.merc.system.config.SystemPropertyConfigurator.java
@Override protected void processProperties(ConfigurableListableBeanFactory confListBeanFactory, Properties props) throws BeansException { Map<String, String> tmpProps = new HashMap<String, String>(props.size()); super.processProperties(confListBeanFactory, props); for (Map.Entry<Object, Object> entry : props.entrySet()) { tmpProps.put(String.valueOf(entry.getKey()), String.valueOf(entry.getValue())); }//from w w w.j av a 2 s . co m this.resolvedProps = Collections.unmodifiableMap(tmpProps); }
From source file:de.flashpixx.rrd_antlr4.generator.IBaseGenerator.java
/** * ctor// w w w.ja va 2 s. c o m * * @param p_baseoutputdirectory base output directory * @param p_templates array with exporting templates * @param p_imports set with imported grammar files * @param p_docuclean set with documentation strings */ protected IBaseGenerator(final File p_baseoutputdirectory, final Set<File> p_imports, final Set<String> p_docuclean, final Set<ETemplate> p_templates) { m_docuclean = p_docuclean; m_templates = p_templates; m_baseoutput = p_baseoutputdirectory; m_imports = Collections.unmodifiableMap(p_imports.parallelStream() .collect(Collectors.toMap(i -> FilenameUtils.removeExtension(i.getName()), i -> i))); }
From source file:me.st28.flexseries.flexcore.debug.DebugManager.java
public final Map<Class<? extends JavaPlugin>, Map<String, DebugTest>> getDebugTests() { return Collections.unmodifiableMap(debugTests); }
From source file:com.haulmont.cuba.web.app.ui.serverlogviewer.ControlLoggerWindow.java
public Map<String, Level> getLevels() { return Collections.unmodifiableMap(levels); }
From source file:tools.xor.ObjectPersister.java
public void process(Settings settings, Map<PropertyKey, List<Executable>> currentActions) { // Process the uni-directional actions Set<PropertyKey> uniDirKeys = new HashSet<PropertyKey>(); for (PropertyKey key : currentActions.keySet()) { if (!((ExtendedProperty) key.getProperty()).isBiDirectional()) uniDirKeys.add(key);/*from w w w .j a va 2 s . c o m*/ } for (PropertyKey uniDirKey : uniDirKeys) { List<Executable> actions = currentActions.remove(uniDirKey); processActions(uniDirKey, actions); } // Currently used by tests for immediate actions if (currentActions != deferredActions) { settings.getInterceptor().preBiDirActionStage(Collections.unmodifiableMap(currentActions)); } for (Map.Entry<PropertyKey, List<Executable>> entry : currentActions.entrySet()) processActions(entry.getKey(), currentActions.get(entry.getKey())); }
From source file:com.vangent.hieos.services.xds.bridge.mapper.ContentParserConfig.java
/** * Method description//from w w w. j av a 2s.com * * * @return */ public Map<String, String> getContentConversions() { return Collections.unmodifiableMap(contentConversions); }
From source file:com.operalot.validator.util.OverridablePropertyPlaceholderConfigurer.java
public Map<String, String> getResolvedProps() { return Collections.unmodifiableMap(resolvedProps); }
From source file:com.smartitengineering.jetty.session.replication.SessionData.java
public synchronized Map getAttributeMap() { return Collections.unmodifiableMap(attributes); }
From source file:com.sap.core.odata.testutil.tool.core.TestRequest.java
public Map<String, String> getHeaders() { return Collections.unmodifiableMap(headers); }
From source file:com.hazelcast.qasonar.codecoverage.CodeCoverageAnalyzer.java
public Map<String, FileContainer> getFiles() { return Collections.unmodifiableMap(files); }