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:com.exzogeni.dk.http.HttpTask.java
@NonNull private static Map<String, List<String>> getHeaderFields(HttpURLConnection cn) { final Map<String, List<String>> headers = cn.getHeaderFields(); if (headers != null) { final Map<String, List<String>> localHeaders = new HashMap<>(headers); localHeaders.remove(null);//from w ww . ja v a 2s . c o m return Collections.unmodifiableMap(localHeaders); } return Collections.emptyMap(); }
From source file:com.chiorichan.factory.StackFactory.java
public Map<String, ScriptingContext> getScriptTraceHistory() { return Collections.unmodifiableMap(scriptStackHistory); }
From source file:com.persistent.cloudninja.utils.RoleBasedAccessControlInterceptor.java
public Map<String, String> getUserurls() { return Collections.unmodifiableMap(userurls); }
From source file:com.aionemu.gameserver.model.gameobjects.player.PlayerScripts.java
public Map<Integer, PlayerScript> getScripts() { return Collections.unmodifiableMap(scripts); }
From source file:dk.clanie.bitcoin.json.JsonExtra.java
/** * Gets names and values of all other (unknown) JSON fields. * /*from w w w. j a va 2s. c o m*/ * @return Names and values of other fields available. */ @JsonAnyGetter public Map<String, Object> getOtherFields() { return Collections.unmodifiableMap(otherFields); }
From source file:com.joyent.manta.domain.ErrorDetail.java
@Override public Map<String, Object> asMap() { final Map<String, Object> attributes = new LinkedHashMap<>(); if (getMessage() != null) { attributes.put("message", getMessage()); }//from ww w. j a v a 2 s . com if (getCode() != null) { attributes.put("code", getCode()); } if (getErrors() != null) { attributes.put("errors", getErrors()); } return Collections.unmodifiableMap(attributes); }
From source file:com.zotoh.maedr.impl.DefaultDeviceFactory.java
/** * @return */ public static Map<String, Class<?>> getDevCZMap() { return Collections.unmodifiableMap(_DEVMAP); }
From source file:dk.clanie.bitcoin.client.response.ListAccountsResult.java
/** * Gets names and balances of all accounts. * //from ww w . j a v a 2 s . c o m * @return Names of other fields available. */ @JsonAnyGetter public Map<String, BigDecimal> getAccountBalances() { return Collections.unmodifiableMap(accountBalances); }
From source file:org.openmrs.module.metadatasharing.handler.impl.GlobalPropertiesHandler.java
public GlobalPropertiesHandler() { Map<Class<? extends GlobalProperty>, String> tmpTypes = new HashMap<Class<? extends GlobalProperty>, String>(); tmpTypes.put(GlobalProperty.class, "Global Property"); types = Collections.unmodifiableMap(tmpTypes); }
From source file:com.l2jfree.util.HandlerRegistry.java
public final Map<K, V> getHandlers() { return Collections.unmodifiableMap(_map); }