List of usage examples for com.google.common.collect ImmutableMap.Entry get
V get(Object key);
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)); } } }