Home
last modified time | relevance | path

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

12345678910>>...13

/external/guice/extensions/servlet/test/com/google/inject/servlet/
DExtensionSpiTest.java23 import com.google.common.collect.ImmutableMap;
81 new Params("/class", Key.get(DummyFilterImpl.class), ImmutableMap.of(), SERVLET), in validateVisitor()
82 new Params("/class/2", Key.get(DummyFilterImpl.class), ImmutableMap.of(), SERVLET), in validateVisitor()
83 …new Params("/key", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of(), SERVLET), in validateVisitor()
84 …new Params("/key/2", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of(), SERVLE… in validateVisitor()
85 new Params("/instance", dummyFilter1, ImmutableMap.of(), SERVLET), in validateVisitor()
86 new Params("/instance/2", dummyFilter1, ImmutableMap.of(), SERVLET), in validateVisitor()
87 …new Params("/class/keyvalues", Key.get(DummyFilterImpl.class), ImmutableMap.of("key", "value"), SE… in validateVisitor()
88 …new Params("/class/keyvalues/2", Key.get(DummyFilterImpl.class), ImmutableMap.of("key", "value"), … in validateVisitor()
89 …"/key/keyvalues", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of("key", "valu… in validateVisitor()
[all …]
/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()
DTreeBasedTableTest.java81 assertEquals(table.row("b"), ImmutableMap.of("b", "x", "x", "n")); in testClearSubMapOfRowMap()
83 assertEquals(table.row("b"), ImmutableMap.of()); in testClearSubMapOfRowMap()
250 assertEquals(ImmutableMap.of(1, 'b'), map.get("bar")); in testRowKeyMapHeadMap()
261 assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), map.get("foo")); in testRowKeyMapTailMap()
272 assertEquals(ImmutableMap.of(2, 'd'), map.get("dog")); in testRowKeyMapSubMap()
391 assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), row); in testSubRowClearAndPut()
392 assertEquals(ImmutableMap.of(3, 'c'), subRow); in testSubRowClearAndPut()
394 assertEquals(ImmutableMap.of(1, 'a'), row); in testSubRowClearAndPut()
395 assertEquals(ImmutableMap.of(), subRow); in testSubRowClearAndPut()
397 assertEquals(ImmutableMap.of(), row); in testSubRowClearAndPut()
[all …]
/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()
DSingletonImmutableTableTest.java45 assertEquals(ImmutableMap.of(), testTable.column(0)); in testColumn()
46 assertEquals(ImmutableMap.of('a', "blah"), testTable.column(1)); in testColumn()
54 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "blah")), testTable.columnMap()); in testColumnMap()
58 assertEquals(ImmutableMap.of(), testTable.row('A')); in testRow()
59 assertEquals(ImmutableMap.of(1, "blah"), testTable.row('a')); in testRow()
67 assertEquals(ImmutableMap.of('a', ImmutableMap.of(1, "blah")), 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/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/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/turbine/java/com/google/turbine/binder/bytecode/
DBytecodeBoundClass.java25 import com.google.common.collect.ImmutableMap;
141 final Supplier<ImmutableMap<String, ClassSymbol>> children =
143 new Supplier<ImmutableMap<String, ClassSymbol>>() {
145 public ImmutableMap<String, ClassSymbol> get() {
146 ImmutableMap.Builder<String, ClassSymbol> result = ImmutableMap.builder();
161 public ImmutableMap<String, ClassSymbol> children() { in children()
198 private final Supplier<ImmutableMap<String, TyVarSymbol>> tyParams =
200 new Supplier<ImmutableMap<String, TyVarSymbol>>() {
202 public ImmutableMap<String, TyVarSymbol> get() {
205 return ImmutableMap.of();
[all …]
/external/turbine/java/com/google/turbine/binder/bound/
DSourceTypeBoundClass.java21 import com.google.common.collect.ImmutableMap;
39 private final ImmutableMap<String, ClassSymbol> children;
42 private final ImmutableMap<String, TyVarSymbol> typeParameters;
44 private final ImmutableMap<TyVarSymbol, TyVarInfo> typeParameterTypes;
59 ImmutableMap<TyVarSymbol, TyVarInfo> typeParameterTypes, in SourceTypeBoundClass()
65 ImmutableMap<String, ClassSymbol> children, in SourceTypeBoundClass()
66 ImmutableMap<String, TyVarSymbol> typeParameters, in SourceTypeBoundClass()
126 public ImmutableMap<String, ClassSymbol> children() {
131 public ImmutableMap<String, TyVarSymbol> typeParameters() {
165 public ImmutableMap<TyVarSymbol, TyVarInfo> typeParameterTypes() {
/external/owasp/sanitizer/src/main/org/owasp/html/
DPolicyFactory.java39 import com.google.common.collect.ImmutableMap;
56 private final ImmutableMap<String, ElementAndAttributePolicies> policies;
57 private final ImmutableMap<String, AttributePolicy> globalAttrPolicies;
61 ImmutableMap<String, ElementAndAttributePolicies> policies, in PolicyFactory()
63 ImmutableMap<String, AttributePolicy> globalAttrPolicies) { in PolicyFactory()
134 ImmutableMap.Builder<String, ElementAndAttributePolicies> b in and()
135 = ImmutableMap.builder(); in and()
172 ImmutableMap<String, AttributePolicy> allGlobalAttrPolicies; in and()
178 ImmutableMap.Builder<String, AttributePolicy> ab = ImmutableMap.builder(); in and()
/external/turbine/java/com/google/turbine/binder/env/
DSimpleEnv.java19 import com.google.common.collect.ImmutableMap;
25 private final ImmutableMap<K, V> map;
27 public SimpleEnv(ImmutableMap<K, V> map) { in SimpleEnv()
35 public ImmutableMap<K, V> asMap() { in asMap()
41 private final ImmutableMap.Builder<K, V> map = ImmutableMap.builder();

12345678910>>...13