Home
last modified time | relevance | path

Searched refs:ImmutableMap (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/external/guice/extensions/servlet/test/com/google/inject/servlet/
DExtensionSpiTest.java23 import com.google.common.collect.ImmutableMap;
80 new Params("/class", Key.get(DummyFilterImpl.class), ImmutableMap.of(), SERVLET), in validateVisitor()
81 new Params("/class/2", Key.get(DummyFilterImpl.class), ImmutableMap.of(), SERVLET), in validateVisitor()
85 ImmutableMap.of(), in validateVisitor()
90 ImmutableMap.of(), in validateVisitor()
92 new Params("/instance", dummyFilter1, ImmutableMap.of(), SERVLET), in validateVisitor()
93 new Params("/instance/2", dummyFilter1, ImmutableMap.of(), SERVLET), in validateVisitor()
97 ImmutableMap.of("key", "value"), in validateVisitor()
102 ImmutableMap.of("key", "value"), in validateVisitor()
107 ImmutableMap.of("key", "value"), in validateVisitor()
[all …]
DTransferRequestIntegrationTest.java19 import com.google.common.collect.ImmutableMap;
101 ImmutableMap<Key<?>, Object> seedMap = ImmutableMap.of(); in testTransferNonHttpRequest()
141 ImmutableMap<Key<?>, Object> seedMap = ImmutableMap.of(); in testTransferNonHttpRequest_closeable()
174 ImmutableMap<Key<?>, Object> seedMap = ImmutableMap.of(); in testTransferNonHttpRequest_concurrentUseBlocks()
210 ImmutableMap<Key<?>, Object> seedMap = ImmutableMap.of(); in testTransferNonHttpRequest_concurrentUseBlocks_closeable()
223 ImmutableMap<Key<?>, Object> seedMap = ImmutableMap.of(); in testTransferNonHttpRequest_concurrentUseSameThreadOk()
241 ImmutableMap<Key<?>, Object> seedMap = ImmutableMap.of(); in testTransferNonHttpRequest_concurrentUseSameThreadOk_closeable()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DImmutableMapTest.java21 import com.google.common.collect.ImmutableMap.Builder;
81 return ImmutableMap.of(); in makeEmptyMap()
85 return ImmutableMap.of("one", 1, "two", 2, "three", 3); in makePopulatedMap()
100 return ImmutableMap.of("one", 1); in makePopulatedMap()
121 return ImmutableMap.of( in makePopulatedMap()
139 ImmutableMap<String, Integer> map in testEmptyBuilder()
145 ImmutableMap<String, Integer> map = new Builder<String, Integer>() in testSingletonBuilder()
152 ImmutableMap<String, Integer> map = new Builder<String, Integer>() in testBuilder()
164 ImmutableMap<String, Integer> map = new Builder<String, Integer>() in testBuilder_withImmutableEntry()
189 ImmutableMap.Builder<String, Integer> builder = in testBuilder_withMutableEntry()
[all …]
DMapsTest.java317 Map<Integer, String> left = ImmutableMap.of( in testMapDifferenceTypical()
319 Map<Integer, String> right = ImmutableMap.of( in testMapDifferenceTypical()
324 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff1.entriesOnlyOnLeft()); in testMapDifferenceTypical()
325 assertEquals(ImmutableMap.of(6, "z"), diff1.entriesOnlyOnRight()); in testMapDifferenceTypical()
326 assertEquals(ImmutableMap.of(1, "a"), diff1.entriesInCommon()); in testMapDifferenceTypical()
327 assertEquals(ImmutableMap.of(3, in testMapDifferenceTypical()
336 assertEquals(ImmutableMap.of(6, "z"), diff2.entriesOnlyOnLeft()); in testMapDifferenceTypical()
337 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff2.entriesOnlyOnRight()); in testMapDifferenceTypical()
338 assertEquals(ImmutableMap.of(1, "a"), diff2.entriesInCommon()); in testMapDifferenceTypical()
339 assertEquals(ImmutableMap.of(3, in testMapDifferenceTypical()
[all …]
DSingletonImmutableTableTest.java44 assertEquals(ImmutableMap.of(), testTable.column(0)); in testColumn()
45 assertEquals(ImmutableMap.of('a', "blah"), testTable.column(1)); in testColumn()
53 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "blah")), testTable.columnMap()); in testColumnMap()
57 assertEquals(ImmutableMap.of(), testTable.row('A')); in testRow()
58 assertEquals(ImmutableMap.of(1, "blah"), testTable.row('a')); in testRow()
66 assertEquals(ImmutableMap.of('a', ImmutableMap.of(1, "blah")), in testRowMap()
/external/guava/guava-tests/test/com/google/common/collect/
DImmutableMapTest.java24 import com.google.common.collect.ImmutableMap.Builder;
173 return ImmutableMap.of(); in makeEmptyMap()
177 return ImmutableMap.of("one", 1, "two", 2, "three", 3); in makePopulatedMap()
192 return ImmutableMap.of("one", 1); in makePopulatedMap()
209 ImmutableMap.of("one", 1, "two", 2, "three", 3)); in makePopulatedMap()
230 return ImmutableMap.of( in makePopulatedMap()
250 return ImmutableMap.of(); in makeEmptyMap()
255 return ImmutableMap.of( in makePopulatedMap()
273 return ImmutableMap.of(0, unhashables.e0); in makePopulatedMap()
279 ImmutableMap<String, Integer> map in testEmptyBuilder()
[all …]
DMapsTest.java383 Map<Integer, String> left = ImmutableMap.of( in testMapDifferenceTypical()
385 Map<Integer, String> right = ImmutableMap.of( in testMapDifferenceTypical()
390 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff1.entriesOnlyOnLeft()); in testMapDifferenceTypical()
391 assertEquals(ImmutableMap.of(6, "z"), diff1.entriesOnlyOnRight()); in testMapDifferenceTypical()
392 assertEquals(ImmutableMap.of(1, "a"), diff1.entriesInCommon()); in testMapDifferenceTypical()
393 assertEquals(ImmutableMap.of(3, in testMapDifferenceTypical()
402 assertEquals(ImmutableMap.of(6, "z"), diff2.entriesOnlyOnLeft()); in testMapDifferenceTypical()
403 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff2.entriesOnlyOnRight()); in testMapDifferenceTypical()
404 assertEquals(ImmutableMap.of(1, "a"), diff2.entriesInCommon()); in testMapDifferenceTypical()
405 assertEquals(ImmutableMap.of(3, in testMapDifferenceTypical()
[all …]
DRegularImmutableTableTest.java119 assertEquals(ImmutableMap.of('a', "foo", 'b', "bar"), in testColumn()
121 assertEquals(ImmutableMap.of('a', "baz"), testInstance.column(2)); in testColumn()
122 assertEquals(ImmutableMap.of(), testInstance.column(3)); in testColumn()
136 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "foo", 'b', "bar"), in testColumnMap()
137 2, ImmutableMap.of('a', "baz")), testInstance.columnMap()); in testColumnMap()
173 assertEquals(ImmutableMap.of(1, "foo", 2, "baz"), in testRow()
175 assertEquals(ImmutableMap.of(1, "bar"), testInstance.row('b')); in testRow()
176 assertEquals(ImmutableMap.of(), testInstance.row('c')); in testRow()
190 assertEquals(ImmutableMap.of('a', ImmutableMap.of(1, "foo", 2, "baz"), in testRowMap()
191 'b', ImmutableMap.of(1, "bar")), testInstance.rowMap()); in testRowMap()
/external/llvm/include/llvm/ADT/
DImmutableMap.h60 class ImmutableMap {
78 explicit ImmutableMap(const TreeTy* R) : Root(const_cast<TreeTy*>(R)) { in ImmutableMap() function
82 ImmutableMap(const ImmutableMap &X) : Root(X.Root) { in ImmutableMap() function
86 ImmutableMap &operator=(const ImmutableMap &X) {
95 ~ImmutableMap() { in ~ImmutableMap()
109 ImmutableMap getEmptyMap() { return ImmutableMap(F.getEmptyTree()); } in getEmptyMap()
111 ImmutableMap add(ImmutableMap Old, key_type_ref K, data_type_ref D) { in add()
113 return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T); in add()
116 ImmutableMap remove(ImmutableMap Old, key_type_ref K) { in remove()
118 return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T); in remove()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DImmutableMap.h63 class ImmutableMap {
81 explicit ImmutableMap(const TreeTy* R) : Root(const_cast<TreeTy*>(R)) { in ImmutableMap() function
85 ImmutableMap(const ImmutableMap &X) : Root(X.Root) { in ImmutableMap() function
89 ~ImmutableMap() { in ~ImmutableMap()
93 ImmutableMap &operator=(const ImmutableMap &X) {
115 ImmutableMap getEmptyMap() { return ImmutableMap(F.getEmptyTree()); } in getEmptyMap()
117 LLVM_NODISCARD ImmutableMap add(ImmutableMap Old, key_type_ref K, in add()
120 return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T); in add()
123 LLVM_NODISCARD ImmutableMap remove(ImmutableMap Old, key_type_ref K) { in remove()
125 return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T); in remove()
[all …]
/external/guava/guava/src/com/google/common/collect/
DSparseImmutableTable.java32 private final ImmutableMap<R, Map<C, V>> rowMap;
33 private final ImmutableMap<C, Map<R, V>> columnMap;
69 ImmutableMap.Builder<R, Map<C, V>> rowBuilder = ImmutableMap.builder(); in SparseImmutableTable()
71 rowBuilder.put(row.getKey(), ImmutableMap.copyOf(row.getValue())); in SparseImmutableTable()
75 ImmutableMap.Builder<C, Map<R, V>> columnBuilder = ImmutableMap.builder(); in SparseImmutableTable()
77 columnBuilder.put(col.getKey(), ImmutableMap.copyOf(col.getValue())); in SparseImmutableTable()
82 @Override public ImmutableMap<C, Map<R, V>> columnMap() { in columnMap()
86 @Override public ImmutableMap<R, Map<C, V>> rowMap() { in rowMap()
99 ImmutableMap<C, V> row = (ImmutableMap<C, V>) rowEntry.getValue(); in getCell()
108 ImmutableMap<C, V> row = (ImmutableMap<C, V>) rowMap.values().asList().get(rowIndex); in getValue()
DSingletonImmutableTable.java46 @Override public ImmutableMap<R, V> column(C columnKey) { in column()
49 ? ImmutableMap.of(singleRowKey, singleValue) in column()
50 : ImmutableMap.<R, V>of(); in column()
53 @Override public ImmutableMap<C, Map<R, V>> columnMap() { in columnMap()
54 return ImmutableMap.of(singleColumnKey, in columnMap()
55 (Map<R, V>) ImmutableMap.of(singleRowKey, singleValue)); in columnMap()
58 @Override public ImmutableMap<R, Map<C, V>> rowMap() { in rowMap()
59 return ImmutableMap.of(singleRowKey, in rowMap()
60 (Map<C, V>) ImmutableMap.of(singleColumnKey, singleValue)); in rowMap()
DDenseImmutableTable.java33 private final ImmutableMap<R, Integer> rowKeyToIndex;
34 private final ImmutableMap<C, Integer> columnKeyToIndex;
35 private final ImmutableMap<R, Map<C, V>> rowMap;
36 private final ImmutableMap<C, Map<R, V>> columnMap;
43 private static <E> ImmutableMap<E, Integer> makeIndex(ImmutableSet<E> set) { in makeIndex()
44 ImmutableMap.Builder<E, Integer> indexBuilder = ImmutableMap.builder(); in makeIndex()
87 private abstract static class ImmutableArrayMap<K, V> extends ImmutableMap<K, V> {
94 abstract ImmutableMap<K, Integer> keyToIndex(); in keyToIndex()
126 @Override ImmutableMap<K, V> map() { in createEntrySet()
161 ImmutableMap<C, Integer> keyToIndex() {
[all …]
DImmutableMap.java62 public abstract class ImmutableMap<K, V> implements Map<K, V>, Serializable { class
69 public static <K, V> ImmutableMap<K, V> of() { in of()
79 public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { in of()
88 public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) { in of()
97 public static <K, V> ImmutableMap<K, V> of( in of()
108 public static <K, V> ImmutableMap<K, V> of( in of()
119 public static <K, V> ImmutableMap<K, V> of( in of()
247 public ImmutableMap<K, V> build() { in build()
271 public static <K, V> ImmutableMap<K, V> copyOf( in copyOf()
273 if ((map instanceof ImmutableMap) && !(map instanceof ImmutableSortedMap)) { in copyOf()
[all …]
/external/desugar/java/com/google/devtools/common/options/
DOptionFilterDescriptions.java16 import com.google.common.collect.ImmutableMap;
40 static ImmutableMap<OptionDocumentationCategory, String> getOptionCategoriesEnumDescription( in getOptionCategoriesEnumDescription()
42 ImmutableMap.Builder<OptionDocumentationCategory, String> optionCategoriesBuilder = in getOptionCategoriesEnumDescription()
43 ImmutableMap.builder(); in getOptionCategoriesEnumDescription()
89 public static ImmutableMap<OptionEffectTag, String> getOptionEffectTagDescription( in getOptionEffectTagDescription()
91 ImmutableMap.Builder<OptionEffectTag, String> effectTagDescriptionBuilder = in getOptionEffectTagDescription()
92 ImmutableMap.builder(); in getOptionEffectTagDescription()
156 public static ImmutableMap<OptionMetadataTag, String> getOptionMetadataTagDescription( in getOptionMetadataTagDescription()
158 ImmutableMap.Builder<OptionMetadataTag, String> effectTagDescriptionBuilder = in getOptionMetadataTagDescription()
159 ImmutableMap.builder(); in getOptionMetadataTagDescription()
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/
DMultibindingTest.java17 import com.google.common.collect.ImmutableMap;
75 ImmutableMap.of( in nestedKeyMap()
83 .isEqualTo(ImmutableMap.of(testStringKey("foo\n"), "foo annotation")); in unwrappedAnnotationKeyMap()
92 ImmutableMap.of( in wrappedAnnotationKeyMap()
100 assertThat(multibindingComponent.booleanKeyMap()).isEqualTo(ImmutableMap.of(true, "true")); in booleanKeyMap()
106 .isEqualTo(ImmutableMap.of((byte) 100, "100 byte")); in byteKeyMap()
112 .isEqualTo(ImmutableMap.of('a', "a char", '\n', "newline char")); in charKeyMap()
119 ImmutableMap.of( in classKeyMap()
128 ImmutableMap.of( in numberClassKeyMap()
135 assertThat(multibindingComponent.integerKeyMap()).isEqualTo(ImmutableMap.of(100, "100 int")); in intKeyMap()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/config/
DCaliperConfig.java35 import com.google.common.collect.ImmutableMap;
54 @VisibleForTesting final ImmutableMap<String, String> properties;
55 private final ImmutableMap<Class<? extends ResultProcessor>, ResultProcessorConfig>
59 public CaliperConfig(ImmutableMap<String, String> properties) in CaliperConfig()
68 ImmutableMap<String, String> groupProperties, Class<T> type) in mapGroupNamesToClasses()
89 private static ImmutableMap<Class<? extends ResultProcessor>, ResultProcessorConfig>
90 findResultProcessorConfigs(ImmutableMap<String, String> resultsProperties) in findResultProcessorConfigs()
94 ImmutableMap.Builder<Class<? extends ResultProcessor>, ResultProcessorConfig> builder = in findResultProcessorConfigs()
95 ImmutableMap.builder(); in findResultProcessorConfigs()
102 public ImmutableMap<String, String> properties() { in properties()
[all …]
/external/caliper/caliper/src/test/java/com/google/caliper/config/
DCaliperConfigTest.java27 import com.google.common.collect.ImmutableMap;
52 ImmutableMap.of("vm.args", "-very -special=args")); in getDefaultVmConfig()
67 CaliperConfig configuration = new CaliperConfig(ImmutableMap.of( in getVmConfig_baseDirectoryAndName()
77 CaliperConfig configuration = new CaliperConfig(ImmutableMap.of( in getVmConfig_baseDirectoryAndHome()
86 CaliperConfig configuration = new CaliperConfig(ImmutableMap.of( in getVmConfig()
103 CaliperConfig configuration = new CaliperConfig(ImmutableMap.of( in getVmConfig_escapedSpacesInArgs()
116 CaliperConfig configuration = new CaliperConfig(ImmutableMap.of( in getInstrumentConfig()
130 CaliperConfig configuration = new CaliperConfig(ImmutableMap.of( in getInstrumentConfig_notConfigured()
140 CaliperConfig configuration = new CaliperConfig(ImmutableMap.of( in getConfiguredInstruments()
152 new CaliperConfig(ImmutableMap.<String, String>of()).getConfiguredResultProcessors()); in getConfiguredResultProcessors()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableMap.java43 public abstract class ImmutableMap<K, V> implements Map<K, V>, Serializable { class
45 ImmutableMap() {} in ImmutableMap() method in ImmutableMap
47 public static <K, V> ImmutableMap<K, V> of() { in of()
51 public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { in of()
55 public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) { in of()
59 public static <K, V> ImmutableMap<K, V> of( in of()
65 public static <K, V> ImmutableMap<K, V> of( in of()
71 public static <K, V> ImmutableMap<K, V> of( in of()
118 public ImmutableMap<K, V> build() { in build()
122 private static <K, V> ImmutableMap<K, V> fromEntryList( in fromEntryList()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DImmutableMap.h61 class ImmutableMap {
79 explicit ImmutableMap(const TreeTy* R) : Root(const_cast<TreeTy*>(R)) { in ImmutableMap() function
82 ImmutableMap(const ImmutableMap &X) : Root(X.Root) { in ImmutableMap() function
85 ImmutableMap &operator=(const ImmutableMap &X) {
93 ~ImmutableMap() { in ~ImmutableMap()
108 ImmutableMap getEmptyMap() { return ImmutableMap(F.getEmptyTree()); } in getEmptyMap()
110 ImmutableMap add(ImmutableMap Old, key_type_ref K, data_type_ref D) { in add()
112 return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T); in add()
115 ImmutableMap remove(ImmutableMap Old, key_type_ref K) { in remove()
117 return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T); in remove()
[all …]
/external/turbine/java/com/google/turbine/binder/bytecode/
DBytecodeBoundClass.java25 import com.google.common.collect.ImmutableMap;
146 private final Supplier<ImmutableMap<String, ClassSymbol>> children =
148 new Supplier<ImmutableMap<String, ClassSymbol>>() {
150 public ImmutableMap<String, ClassSymbol> get() {
151 ImmutableMap.Builder<String, ClassSymbol> result = ImmutableMap.builder();
166 public ImmutableMap<String, ClassSymbol> children() { in children()
203 private final Supplier<ImmutableMap<String, TyVarSymbol>> tyParams =
205 new Supplier<ImmutableMap<String, TyVarSymbol>>() {
207 public ImmutableMap<String, TyVarSymbol> get() {
210 return ImmutableMap.of();
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMapGenerators.java22 import com.google.common.collect.ImmutableMap;
51 ImmutableMap.Builder<String, String> builder = ImmutableMap.builder(); in create()
66 return ImmutableMap.copyOf(builder); in create()
75 ImmutableMap.Builder<Integer, UnhashableObject> builder = ImmutableMap.builder(); in create()
87 ImmutableMap.Builder<String, Integer> builder = ImmutableMap.builder(); in create()
98 ImmutableMap.Builder<Integer, String> builder = ImmutableMap.builder(); in create()
132 ImmutableMap.Builder<String, Integer> builder = ImmutableMap.builder(); in create()
161 return ImmutableMap.copyOf(map); in create()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DShadowMap.java3 import com.google.common.collect.ImmutableMap;
26 static final ShadowMap EMPTY = new ShadowMap(ImmutableMap.of(), ImmutableMap.of());
28 private final ImmutableMap<String, String> defaultShadows;
29 private final ImmutableMap<String, ShadowInfo> overriddenShadows;
30 private final ImmutableMap<String, String> shadowPickers;
39 return new ShadowMap(ImmutableMap.copyOf(shadowMap), Collections.emptyMap(), in createFromShadowProviders()
40 ImmutableMap.copyOf(shadowPickerMap)); in createFromShadowProviders()
43 …ShadowMap(ImmutableMap<String, String> defaultShadows, Map<String, ShadowInfo> overriddenShadows) { in ShadowMap()
47 private ShadowMap(ImmutableMap<String, String> defaultShadows, in ShadowMap()
51 this.overriddenShadows = ImmutableMap.copyOf(overriddenShadows); in ShadowMap()
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/out/
DKeyboardToXml.java19 import com.google.common.collect.ImmutableMap;
43 xmlWriter.startElement("keyboard", ImmutableMap.of("locale", keyboard.keyboardId())); in toXml()
55 ImmutableMap<String, String> versionAttributes = ImmutableMap.of( in addMetadata()
62 xmlWriter.addElement("name", ImmutableMap.of("value", name)); in addMetadata()
66 ImmutableMap.Builder<String, String> settingsBuilder = ImmutableMap.builder(); in addMetadata()
82 ImmutableMap<String, String> settingsAttributes = settingsBuilder.build(); in addMetadata()
92 ImmutableMap.Builder<String, String> keyMapAttributes = ImmutableMap.builder(); in addKeyMaps()
100 ImmutableMap.Builder<String, String> mapAttributes = ImmutableMap.builder(); in addKeyMaps()
179 xmlWriter.startElement("transforms", ImmutableMap.of("type", "simple")); in addTransforms()
185 ImmutableMap.of("from", escapedSequence, "to", escapedOutput), in addTransforms()
/external/turbine/javatests/com/google/turbine/lower/
DLowerTest.java26 import com.google.common.collect.ImmutableMap;
95 ImmutableMap<TyVarSymbol, SourceTypeBoundClass.TyVarInfo> tps = in hello()
96 ImmutableMap.of( in hello()
113 ImmutableMap.of(), in hello()
124 ImmutableMap.of( in hello()
174 ImmutableMap<String, ClassSymbol> children = ImmutableMap.of(); in hello()
175 ImmutableMap<String, TyVarSymbol> tyParams = in hello()
176 ImmutableMap.of("V", new TyVarSymbol(new ClassSymbol("test/Test"), "V")); in hello()
202 ImmutableMap.of(), in hello()
208 ImmutableMap.of("Inner", new ClassSymbol("test/Test$Inner")), in hello()
[all …]

12345678910>>...16