Home
last modified time | relevance | path

Searched refs:mapBuilder (Results 1 – 14 of 14) sorted by relevance

/external/dagger2/java/dagger/producers/internal/
DAbstractMapProducer.java49 final ImmutableMap.Builder<K, Producer<V>> mapBuilder; field in AbstractMapProducer.Builder
52 mapBuilder = ImmutableMap.builderWithExpectedSize(size); in Builder()
67 mapBuilder.put(key, producerOfValue); in put()
75 mapBuilder.put(key, producerFromProvider(providerOfValue)); in put()
89 mapBuilder.putAll(asAbstractMapProducer.contributingMap); in putAll()
DMapProducer.java73 return new MapProducer<>(mapBuilder.build()); in build()
DMapOfProducerProducer.java76 return new MapOfProducerProducer<>(mapBuilder.build()); in build()
DMapOfProducedProducer.java119 return new MapOfProducedProducer<>(mapBuilder.build());
/external/guava/android/guava/src/com/google/common/reflect/
DImmutableTypeToInstanceMap.java62 private final ImmutableMap.Builder<TypeToken<? extends B>, B> mapBuilder = field in ImmutableTypeToInstanceMap.Builder
73 mapBuilder.put(TypeToken.of(key), value); in put()
83 mapBuilder.put(key.rejectTypeVariables(), value); in put()
93 return new ImmutableTypeToInstanceMap<B>(mapBuilder.build()); in build()
/external/guava/guava/src/com/google/common/reflect/
DImmutableTypeToInstanceMap.java62 private final ImmutableMap.Builder<TypeToken<? extends B>, B> mapBuilder = field in ImmutableTypeToInstanceMap.Builder
73 mapBuilder.put(TypeToken.of(key), value); in put()
83 mapBuilder.put(key.rejectTypeVariables(), value); in put()
93 return new ImmutableTypeToInstanceMap<B>(mapBuilder.build()); in build()
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DJsonFormatTest.java242 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testUnknownEnumValues() local
243 mapBuilder.putInt32ToEnumMapValue(1, 0); in testUnknownEnumValues()
244 mapBuilder.putInt32ToEnumMapValue(2, 12345); in testUnknownEnumValues()
245 TestMap mapMessage = mapBuilder.build(); in testUnknownEnumValues()
1678 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testSortedMapKeys() local
1679 mapBuilder.putStringToInt32Map("\ud834\udd20", 3); // utf-8 F0 9D 84 A0 in testSortedMapKeys()
1680 mapBuilder.putStringToInt32Map("foo", 99); in testSortedMapKeys()
1681 mapBuilder.putStringToInt32Map("xxx", 123); in testSortedMapKeys()
1682 mapBuilder.putStringToInt32Map("\u20ac", 1); // utf-8 E2 82 AC in testSortedMapKeys()
1683 mapBuilder.putStringToInt32Map("abc", 20); in testSortedMapKeys()
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DImmutableClassToInstanceMap.java90 private final ImmutableMap.Builder<Class<? extends B>, B> mapBuilder = ImmutableMap.builder(); field in ImmutableClassToInstanceMap.Builder
98 mapBuilder.put(key, value); in put()
114 mapBuilder.put(type, cast(type, value)); in putAll()
130 ImmutableMap<Class<? extends B>, B> map = mapBuilder.build(); in build()
/external/guava/guava/src/com/google/common/collect/
DImmutableClassToInstanceMap.java90 private final ImmutableMap.Builder<Class<? extends B>, B> mapBuilder = ImmutableMap.builder(); field in ImmutableClassToInstanceMap.Builder
98 mapBuilder.put(key, value); in put()
114 mapBuilder.put(type, cast(type, value)); in putAll()
130 ImmutableMap<Class<? extends B>, B> map = mapBuilder.build(); in build()
/external/connectedappssdk/processor/src/main/resources/parcelablewrappers/
DParcelableImmutableMap.java71 ImmutableMap.Builder<E, F> mapBuilder = ImmutableMap.builder(); in ParcelableImmutableMap() local
82 mapBuilder.put(key, value); in ParcelableImmutableMap()
86 map = mapBuilder.build(); in ParcelableImmutableMap()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DMapForProto2LiteTest.java72 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testSetMapValues() local
73 setMapValues(mapBuilder); in testSetMapValues()
74 TestMap map = mapBuilder.build(); in testSetMapValues()
143 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testUpdateMapValues() local
144 setMapValues(mapBuilder); in testUpdateMapValues()
145 TestMap map = mapBuilder.build(); in testUpdateMapValues()
148 mapBuilder = map.toBuilder(); in testUpdateMapValues()
149 updateMapValues(mapBuilder); in testUpdateMapValues()
150 map = mapBuilder.build(); in testUpdateMapValues()
DMapLiteTest.java150 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testUpdateMapValues() local
151 setMapValues(mapBuilder); in testUpdateMapValues()
152 TestMap map = mapBuilder.build(); in testUpdateMapValues()
155 mapBuilder = map.toBuilder(); in testUpdateMapValues()
156 updateMapValues(mapBuilder); in testUpdateMapValues()
157 map = mapBuilder.build(); in testUpdateMapValues()
/external/auto/value/src/main/java/com/google/auto/value/processor/
DAutoOneOfProcessor.java172 ImmutableMap.Builder<String, String> mapBuilder = ImmutableMap.builder(); in propertyToKindMap() local
174 mapBuilder.put( in propertyToKindMap()
178 return mapBuilder.build(); in propertyToKindMap()
/external/auto/value/src/it/functional/src/test/java/com/google/auto/value/
DAutoValueTest.java2252 mapBuilder().putAll(map); in putAll()
2256 public abstract ImmutableMap.Builder<String, V> mapBuilder(); in mapBuilder() method in AutoValueTest.BuilderWithExoticPropertyBuilders.Builder
2284 bBuilder.mapBuilder().putAll(map); in testBuilderWithExoticPropertyBuilders()
2854 abstract MyMapBuilder<K, V> mapBuilder(); in mapBuilder() method in AutoValueTest.BuildMyMap.Builder
2863 MyMapBuilder<String, Integer> mapBuilder = builder.mapBuilder(); in testMyMapBuilder() local
2864 mapBuilder.put("23", 23); in testMyMapBuilder()
2869 MyMapBuilder<String, Integer> mapBuilder2 = builder2.mapBuilder(); in testMyMapBuilder()
2912 abstract MyStringMapBuilder<V> mapBuilder(); in mapBuilder() method in AutoValueTest.BuildMyStringMap.Builder
2921 MyStringMapBuilder<Integer> mapBuilder = builder.mapBuilder(); in testMyStringMapBuilder() local
2922 mapBuilder.put("23", 23); in testMyStringMapBuilder()
[all …]