Example usage for com.google.common.collect Multimaps unmodifiableMultimap

List of usage examples for com.google.common.collect Multimaps unmodifiableMultimap

Introduction

In this page you can find the example usage for com.google.common.collect Multimaps unmodifiableMultimap.

Prototype

@Deprecated
public static <K, V> Multimap<K, V> unmodifiableMultimap(ImmutableMultimap<K, V> delegate) 

Source Link

Document

Simply returns its argument.

Usage

From source file:org.opendaylight.yangtools.sal.binding.generator.impl.ModuleContext.java

public Multimap<Type, Type> getAugmentableToAugmentations() {
    return Multimaps.unmodifiableMultimap(augmentableToAugmentations);
}

From source file:com.github.rinde.rinsim.geom.MultimapGraph.java

/**
 * Returns an unmodifiable view on the {@link Multimap} which back this graph.
 * @return The view on the multimap./*from   w ww . j  a  v a2s  . c  om*/
 */
public Multimap<Point, Point> getMultimap() {
    return Multimaps.unmodifiableMultimap(multimap);
}

From source file:com.google.devrel.gmscore.tools.apk.arsc.ArscBlamer.java

/** Must first call {@link #blame}. */
public Multimap<PackageChunk, ResourceEntry> getPackageToBlamedResources() {
    return Multimaps.unmodifiableMultimap(packageToBlame);
}

From source file:com.google.devrel.gmscore.tools.apk.arsc.ArscBlamer.java

/** Must first call {@link #blame}. */
public Multimap<TypeChunk.Entry, ResourceEntry> getTypeEntryToBlamedResources() {
    return Multimaps.unmodifiableMultimap(typeEntryToBlame);
}

From source file:org.opencms.ade.configuration.formatters.CmsFormatterConfigurationCacheState.java

/**
 * Gets the formatters as a multimap with the resource types as keys and caches this multimap if necessary.<p>
 *
 * @return the multimap of formatters by resource type
 *///from   w  ww.  ja  v  a2s  . co  m
private Multimap<String, I_CmsFormatterBean> getFormattersByType() {

    if (m_formattersByType == null) {
        ArrayListMultimap<String, I_CmsFormatterBean> formattersByType = ArrayListMultimap.create();
        for (I_CmsFormatterBean formatter : m_formatters.values()) {
            for (String typeName : formatter.getResourceTypeNames()) {
                formattersByType.put(typeName, formatter);
            }
        }
        m_formattersByType = formattersByType;
    }
    Multimap<String, I_CmsFormatterBean> result = Multimaps.unmodifiableMultimap(m_formattersByType);
    return result;
}

From source file:pt.org.aguiaj.core.AguiaJActivator.java

public Multimap<String, Class<?>> getPackagesClasses() {
    return Multimaps.unmodifiableMultimap(packagesClasses);
}

From source file:ca.sqlpower.object.annotation.SPClassVisitor.java

/**
 * Returns the {@link Multimap} of JavaBean getter method names that access
 * persistable properties, mapped to additional property names that the
 * session {@link SPPersister} requires to convert the accessor's returned
 * value into a basic persistable type. The order of this {@link Multimap}
 * is guaranteed./*w w w.  j  a  va 2 s  .  c om*/
 * 
 * @see Accessor#additionalInfo()
 */
public Multimap<String, String> getAccessorAdditionalInfo() {
    return Multimaps.unmodifiableMultimap(accessorAdditionalInfo);
}

From source file:com.puppetlabs.geppetto.validation.runner.AllModulesState.java

/**
 * Creates an empty instance.
 */
public AllModulesState() {
    restricted = Multimaps.unmodifiableMultimap(EmptyRestricted);
}

From source file:ca.sqlpower.object.annotation.SPClassVisitor.java

/**
 * Returns the {@link Multimap} of JavaBean setter method names that mutate
 * persistable properties, mapped to {@link MutatorParameterObject}s that
 * contain values for an {@link SPPersister} to use. The order of this
 * {@link Multimap} is guaranteed./*from w w w. j  ava  2s  .  co  m*/
 */
public Multimap<String, MutatorParameterObject> getMutatorExtraParameters() {
    return Multimaps.unmodifiableMultimap(mutatorExtraParameters);
}

From source file:com.aestasit.markdown.slidery.configuration.SimpleConfiguration.java

@Override
public Multimap<String, File> getStaticFiles() {
    return Multimaps.unmodifiableMultimap(staticFiles);
}