Example usage for java.util Collections unmodifiableMap

List of usage examples for java.util Collections unmodifiableMap

Introduction

In this page you can find the example usage for java.util Collections unmodifiableMap.

Prototype

public static <K, V> Map<K, V> unmodifiableMap(Map<? extends K, ? extends V> m) 

Source Link

Document

Returns an unmodifiable view of the specified map.

Usage

From source file:net.sf.jsog.client.DefaultHttpClientImpl.java

/**
 * Gets the additional headers that will be applied to all requests.
 * @return a read-only map of the headers.
 *//*from  w  w w  .  j  ava2s  .c  o  m*/
public final Map<String, String> getHeaders() {
    return Collections.unmodifiableMap(headers);
}

From source file:cmd.InputHandler.java

public Map<String, String> getSingularDataTypes() {
    return Collections.unmodifiableMap(singularDataTypes);
}

From source file:io.gravitee.gateway.http.core.endpoint.impl.DefaultEndpointLifecycleManager.java

@Override
public Map<String, String> targetByEndpoint() {
    return Collections.unmodifiableMap(endpointsTarget);
}

From source file:me.st28.flexseries.flexmotd.backend.PingManager.java

public Map<String, Map<String, String>> getGroups() {
    return Collections.unmodifiableMap(groups);
}

From source file:com.cloudera.flume.reporter.ReportEvent.java

/**
 * Returns an unmodifiable map of all string metrics
 *///from w ww.  java  2  s.c om
public Map<String, String> getAllStringMetrics() {
    return Collections.unmodifiableMap(stringMetrics);
}

From source file:cmd.InputHandler.java

public Map<String, String> getMultipleDataTypes() {
    return Collections.unmodifiableMap(multipleDataTypes);
}

From source file:de.topicmapslab.majortom.server.topicmaps.TopicMapsHandler.java

/**
 * {@inheritDoc}//from   www . j  ava2s . co  m
 */
@Override
@SuppressWarnings("unchecked")
public Map<String, TopicMap> getTopicMapMap() {
    return Collections.unmodifiableMap(topicMapMap);
}

From source file:gaffer.data.elementdefinition.ElementDefinitions.java

public Map<String, EDGE_DEF> getEdges() {
    return Collections.unmodifiableMap(edges);
}

From source file:com.mgmtp.perfload.core.console.status.StatusHandler.java

/**
 * Creates a snapshot of the status information collected so far. The status information is
 * aggregated by daemon, process, and thread.
 * //from   w w w .j a  v  a2 s  .  c  o m
 * @return a list of {@link ThreadStatus} objects representing a snapshot of the current test
 *         status
 */
public Map<StatusInfoKey, StatusInfo> getStatusInfoMap() {
    return Collections.unmodifiableMap(statusInfoMap);
}