Home
last modified time | relevance | path

Searched refs:forMap (Results 1 – 25 of 30) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/base/
DFunctionsTest.java92 Function<String, Integer> function = Functions.forMap(map); in testForMapWithoutDefault()
105 .addEqualityGroup(function, Functions.forMap(map)) in testForMapWithoutDefault()
106 .addEqualityGroup(Functions.forMap(map, 42)) in testForMapWithoutDefault()
112 checkCanReserialize(Functions.forMap(ImmutableMap.of(1, 2))); in testForMapWithoutDefaultSerializable()
120 Function<String, Integer> function = Functions.forMap(map, 42); in testForMapWithDefault()
128 .addEqualityGroup(function, Functions.forMap(map, 42)) in testForMapWithDefault()
129 .addEqualityGroup(Functions.forMap(map)) in testForMapWithDefault()
130 .addEqualityGroup(Functions.forMap(map, null)) in testForMapWithDefault()
131 .addEqualityGroup(Functions.forMap(map, 43)) in testForMapWithDefault()
140 Function<String, Integer> function = Functions.forMap(map, 42); in testForMapWithDefault_includeSerializable()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DFunctionsTest.java72 Function<String, Integer> function = Functions.forMap(map); in testForMapWithoutDefault()
85 .addEqualityGroup(function, Functions.forMap(map)) in testForMapWithoutDefault()
86 .addEqualityGroup(Functions.forMap(map, 42)) in testForMapWithoutDefault()
95 Function<String, Integer> function = Functions.forMap(map, 42); in testForMapWithDefault()
103 .addEqualityGroup(function, Functions.forMap(map, 42)) in testForMapWithDefault()
104 .addEqualityGroup(Functions.forMap(map)) in testForMapWithDefault()
105 .addEqualityGroup(Functions.forMap(map, null)) in testForMapWithDefault()
106 .addEqualityGroup(Functions.forMap(map, 43)) in testForMapWithDefault()
112 Function<String, Integer> function = Functions.forMap(map, null); in testForMapWithDefault_null()
120 .addEqualityGroup(Functions.forMap(map, 1)) in testForMapWithDefault_null()
[all …]
/external/mockito/src/test/java/org/mockitousage/matchers/
DNewMatchersTest.java52 when(mock.forMap(anyMapOf(String.class, String.class))).thenReturn("matched"); in shouldAllowAnyMap()
54 assertEquals("matched", mock.forMap(new HashMap<String, String>())); in shouldAllowAnyMap()
55 assertEquals(null, mock.forMap(null)); in shouldAllowAnyMap()
57 verify(mock, times(1)).forMap(anyMapOf(String.class, String.class)); in shouldAllowAnyMap()
DMoreMatchersTest.java89 when(mock.forMap(anyMapOf(String.class, String.class))).thenReturn("map"); in should_help_out_with_unnecessary_casting_of_maps()
91 assertEquals("map", mock.forMap(new HashMap<String, String>())); in should_help_out_with_unnecessary_casting_of_maps()
92 assertEquals("map", mock.forMap(Collections.<String, String>emptyMap())); in should_help_out_with_unnecessary_casting_of_maps()
DAnyXMatchersAcceptNullsTest.java45 when(mock.forMap(anyMapOf(String.class, String.class))).thenReturn("2"); in shouldNotAcceptNullInAnyXMatchers()
52 assertEquals(null, mock.forMap(null)); in shouldNotAcceptNullInAnyXMatchers()
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DMapFactories.java41 <K, V> Map<K, V> forMap(Map<K, V> oldMap); in forMap() method
57 public <K, V> Map<K, V> forMap(Map<K, V> oldMap) { in forMap() method in MapFactories.DefaultMapFactory
DInternalNano.java400 map = mapFactory.forMap(map); in mergeMapEntry()
/external/guava/guava-tests/test/com/google/common/collect/
DForMapMultimapAsMapImplementsMapTest.java41 return Multimaps.forMap(map).asMap(); in makeEmptyMap()
49 return Multimaps.forMap(map).asMap(); in makePopulatedMap()
DMultimapsTest.java413 Multimap<String, Integer> multimapView = Multimaps.forMap(map); in testForMap()
481 Multimap<String, Integer> multimapView = Multimaps.forMap(map); in testForMapSerialization()
490 Multimap<String, Integer> multimap = Multimaps.forMap(map); in testForMapRemoveAll()
504 Map<String, Collection<Integer>> asMap = Multimaps.forMap(map).asMap(); in testForMapAsMap()
543 multimap = Multimaps.forMap(map); in testForMapGetIteration()
DMapsTest.java985 Functions.forMap(INT_TO_STRING_MAP.inverse())); in testUniqueIndexCollection()
997 Functions.forMap(INT_TO_STRING_MAP.inverse())); in testUniqueIndexIterable()
1004 Functions.forMap(INT_TO_STRING_MAP.inverse())); in testUniqueIndexIterator()
DMultimapsCollectionTest.java172 return Multimaps.forMap(map); in build()
DMapConstraintsTest.java601 = Multimaps.forMap(onceIterableMap("foo", 1)); in testNefariousMultimapPutAllMultimap()
/external/guava/guava/src/com/google/common/base/
DFunctions.java107 public static <K, V> Function<K, V> forMap(Map<K, V> map) { in forMap() method in Functions
154 public static <K, V> Function<K, V> forMap(Map<K, ? extends V> map, @Nullable V defaultValue) { in forMap() method in Functions
/external/mockito/src/test/java/org/mockitousage/serialization/
DParallelSerializationTest.java78 case 8 : iMethods.forMap(null); break; in randomCallOn()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMultimapsTest.java321 Multimap<String, Integer> multimapView = Multimaps.forMap(map); in testForMap()
389 Multimap<String, Integer> multimap = Multimaps.forMap(map); in testForMapRemoveAll()
403 Map<String, Collection<Integer>> asMap = Multimaps.forMap(map).asMap(); in testForMapAsMap()
442 multimap = Multimaps.forMap(map); in testForMapGetIteration()
DMapsTest.java761 Functions.forMap(INT_TO_STRING_MAP.inverse())); in testUniqueIndexCollection()
773 Functions.forMap(INT_TO_STRING_MAP.inverse())); in testUniqueIndexIterable()
780 Functions.forMap(INT_TO_STRING_MAP.inverse())); in testUniqueIndexIterator()
DMapConstraintsTest.java599 = Multimaps.forMap(onceIterableMap("foo", 1)); in testNefariousMultimapPutAllMultimap()
/external/mockito/src/test/java/org/mockitousage/
DIMethods.java197 String forMap(Map<String, String> map); in forMap() method
DMethodsImpl.java370 public String forMap(Map<String, String> map) { in forMap() method in MethodsImpl
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DStripedTest.java152 assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks)); in testBulkGetReturnsSorted()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DXCldrStub.java144 public static <K, V> Map<K,V> forMap(Map<K,V> map) { in forMap() method in XCldrStub.Multimaps
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DXCldrStub.java152 public static <K, V> Map<K,V> forMap(Map<K,V> map) { in forMap() method in XCldrStub.Multimaps
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateValidityXml.java110 Multimaps.invertFrom(Multimaps.forMap(codeToStatus), result); in getStatusMap()
DGenerateLanguageContainment.java78 Multimaps.invertFrom(Multimaps.forMap(entityToCode), LinkedHashMultimap.create()));
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMultimaps.java833 public static <K, V> SetMultimap<K, V> forMap(Map<K, V> map) { in forMap() method in Multimaps

12