List of usage examples for com.google.common.collect Multimaps unmodifiableMultimap
@Deprecated public static <K, V> Multimap<K, V> unmodifiableMultimap(ImmutableMultimap<K, V> delegate)
From source file:com.github.autermann.wps.streaming.message.SoapMessage.java
public Multimap<RelationshipType, MessageID> getRelatedMessages() { return Multimaps.unmodifiableMultimap(relatedMessages); }
From source file:com.sk89q.worldedit.extent.clipboard.io.ClipboardFormats.java
/** * @return a multimap from a file extension to the potential matching formats. *///from w ww. j a v a2 s . c o m public static Multimap<String, ClipboardFormat> getFileExtensionMap() { return Multimaps.unmodifiableMultimap(fileExtensionMap); }
From source file:com.b2international.snowowl.datastore.server.CDOChangeProcessorFactoryManager.java
/** * Returns with a maps of all available {@link CDOChangeProcessorFactory} instances grouped by the repository UUIDs. * @return a collection of change processor factories. *//* w w w . j a v a 2 s .c o m*/ public Multimap<String, CDOChangeProcessorFactory> getFactories() { if (null == factories) { synchronized (CDOChangeProcessorFactoryManager.class) { if (null == factories) { factories = Multimaps.unmodifiableMultimap(loadFactories()); } } } return factories; }
From source file:com.torodb.torod.core.subdocument.SplitDocument.java
SplitDocument(int id, @Nonnull DocStructure structure, @Nonnull Table<SubDocType, Integer, SubDocument> subDocuments, @Nonnull Multimap<SubDocType, DocStructure> structures) { this.id = id; this.root = structure; this.subDocuments = Tables.unmodifiableTable(subDocuments); this.structures = Multimaps.unmodifiableMultimap(structures); }
From source file:com.kixeye.chassis.transport.websocket.WebSocketEnvelope.java
/** * Generates the header cache.//from www . ja va 2s. c o m */ private synchronized void generateHeaderCache() { if (headerCache != null) { // already generated cache return; } // generate the multimap Multimap<String, String> headers = HashMultimap.create(); if (base.headers != null) { for (Header header : base.headers) { headers.putAll(header.name, header.value); } } headerCache = Multimaps.unmodifiableMultimap(headers); }
From source file:com.googlecode.android_scripting.trigger.TriggerRepository.java
/** Returns a list of all triggers. The list is unmodifiable. */ public synchronized Multimap<String, Trigger> getAllTriggers() { return Multimaps.unmodifiableMultimap(mTriggers); }
From source file:org.semanticweb.owlapi.io.RDFParserMetaData.java
@Override public Multimap<IRI, Class<?>> getGuessedDeclarations() { return Multimaps.unmodifiableMultimap(guessedDeclarations); }
From source file:org.apache.brooklyn.util.http.executor.apacheclient.HttpResponseWrapper.java
protected Multimap<String, String> headersImpl() { // The magic number "3" comes from ArrayListMultimap.DEFAULT_VALUES_PER_KEY if (headers == null) { Map<String, List<String>> headerLists = delegate.getHeaderLists(); Multimap<String, String> headers = ArrayListMultimap.<String, String>create(headerLists.size(), 3); for (Map.Entry<String, List<String>> entry : headerLists.entrySet()) { headers.putAll(entry.getKey(), entry.getValue()); }/*from w ww . jav a 2 s . co m*/ this.headers = Multimaps.unmodifiableMultimap(headers); } return headers; }
From source file:org.vclipse.bapi.actions.ContributionReader.java
public Multimap<String, IBAPIActionRunner<?>> getExtensions() { if (type2Action.isEmpty()) { read();/* w w w . jav a 2s.c om*/ } return Multimaps.unmodifiableMultimap(type2Action); }
From source file:org.opendaylight.yangtools.sal.binding.generator.impl.ModuleContext.java
public Multimap<Type, Type> getChoiceToCases() { return Multimaps.unmodifiableMultimap(choiceToCases); }