/external/guava/guava-tests/test/com/google/common/base/ |
D | FunctionsTest.java | 92 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/ |
D | FunctionsTest.java | 72 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/ |
D | NewMatchersTest.java | 52 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()
|
D | MoreMatchersTest.java | 89 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()
|
D | AnyXMatchersAcceptNullsTest.java | 45 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/ |
D | MapFactories.java | 41 <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
|
D | InternalNano.java | 400 map = mapFactory.forMap(map); in mergeMapEntry()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ForMapMultimapAsMapImplementsMapTest.java | 41 return Multimaps.forMap(map).asMap(); in makeEmptyMap() 49 return Multimaps.forMap(map).asMap(); in makePopulatedMap()
|
D | MultimapsTest.java | 413 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()
|
D | MapsTest.java | 985 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()
|
D | MultimapsCollectionTest.java | 172 return Multimaps.forMap(map); in build()
|
D | MapConstraintsTest.java | 601 = Multimaps.forMap(onceIterableMap("foo", 1)); in testNefariousMultimapPutAllMultimap()
|
/external/guava/guava/src/com/google/common/base/ |
D | Functions.java | 107 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/ |
D | ParallelSerializationTest.java | 78 case 8 : iMethods.forMap(null); break; in randomCallOn()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | MultimapsTest.java | 321 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()
|
D | MapsTest.java | 761 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()
|
D | MapConstraintsTest.java | 599 = Multimaps.forMap(onceIterableMap("foo", 1)); in testNefariousMultimapPutAllMultimap()
|
/external/mockito/src/test/java/org/mockitousage/ |
D | IMethods.java | 197 String forMap(Map<String, String> map); in forMap() method
|
D | MethodsImpl.java | 370 public String forMap(Map<String, String> map) { in forMap() method in MethodsImpl
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | StripedTest.java | 152 assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks)); in testBulkGetReturnsSorted()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
D | XCldrStub.java | 144 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/ |
D | XCldrStub.java | 152 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/ |
D | GenerateValidityXml.java | 110 Multimaps.invertFrom(Multimaps.forMap(codeToStatus), result); in getStatusMap()
|
D | GenerateLanguageContainment.java | 78 Multimaps.invertFrom(Multimaps.forMap(entityToCode), LinkedHashMultimap.create()));
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | Multimaps.java | 833 public static <K, V> SetMultimap<K, V> forMap(Map<K, V> map) { in forMap() method in Multimaps
|