Example usage for com.google.common.collect ImmutableMap.Entry get

List of usage examples for com.google.common.collect ImmutableMap.Entry get

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableMap.Entry get.

Prototype

V get(Object key);

Source Link

Document

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

Usage

From source file:com.facebook.buck.python.AbstractPythonPackageComponents.java

@Override
public final void appendToRuleKey(RuleKeyObjectSink sink) {
    // Hash all the input components here so we can detect changes in both input file content
    // and module name mappings.
    // TODO(andrewjcg): Change the types of these fields from Map to SortedMap so that we don't
    // have to do all this weird stuff to ensure the key is stable. Please update
    // getInputsToCompareToOutput() as well once this is fixed.
    for (ImmutableMap.Entry<String, Map<Path, SourcePath>> part : ImmutableMap
            .of("module", getModules(), "resource", getResources(), "nativeLibraries", getNativeLibraries())
            .entrySet()) {/* ww  w.j av  a  2  s . c o m*/
        for (Path name : ImmutableSortedSet.copyOf(part.getValue().keySet())) {
            sink.setReflectively(part.getKey() + ":" + name, part.getValue().get(name));
        }
    }
}