Home
last modified time | relevance | path

Searched refs:merge (Results 1 – 25 of 31) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/
DStringJoinerTest.java87 assertEquals("[Hello world FooBar a!b]", sj1.merge(sj2).merge(sj3).toString()); in testMerge()
93 assertEquals("", sj1.merge(sj2).toString()); in testMergeEmpty()
98 assertEquals("|Hello world Hello world|", sj.merge(sj).toString()); in testMergeSelf()
103 new StringJoiner(" ").merge(null); in testMergeNull()
DMapDefaultMethodTester.java407 assertEquals(10.0, m.merge(1, 10.0, (v1, v2) -> v2)); in test_merge()
412 assertEquals(25.0, m.merge(1, 15.0, (v1, v2) -> v1 + v2)); in test_merge()
417 m.merge(1, 10.0, (k, v) -> null); in test_merge()
422 m.merge(1, 5.0, null); in test_merge()
428 assertEquals(15.0, m.merge(null, 15.0, (v1, v2) -> v2)); in test_merge()
432 m.merge(null, 15.0, (v1, v2) -> v2); in test_merge()
DCollectionsTest.java592 Collections.unmodifiableMap(new HashMap<>()).merge(1, 2.0, (k, v) -> 1.0); in test_unmodifiableMap_merge()
601 Collections.unmodifiableMap(m).merge(1, 2.0, (k, v) -> 1.0); in test_unmodifiableMap_merge()
927 assertThrowsUoe(() -> { map.merge(absentKey, absentValue, (k, v) -> absentValue); }); in check_unmodifiableOrderedMap_defaultMethods()
939 assertThrowsUoe(() -> { map.merge(sampleKey, sampleValue, (k, v) -> absentValue); }); in check_unmodifiableOrderedMap_defaultMethods()
1047 assertThrowsCce(() -> { map.merge(new Object(), presentValue, (v1, v2) -> presentValue); }); in check_map_isChecked()
1048 assertThrowsCce(() -> { map.merge(presentKey, presentValue, (v1, v2) -> new Object()); }); in check_map_isChecked()
1051 map.merge(absentKey, absentValue, (v1, v2) -> new Object()); in check_map_isChecked()
1274 Collections.emptyMap().merge(1, 5.0, (k, v) -> 5.0); in test_EmptyMap_merge()
1351 Collections.singletonMap(1, 11.0).merge(1, 5.0, (k, v) -> 5.0); in test_SingletonMap_merge()
1620 checkedMap2.merge(1, A_STRING, (v1, v2) -> NOT_A_STRING); in test_CheckedMap_merge()
DLinkedHashMapTest.java216 m.merge("key1", "value3", (k, v) -> "value3"); in test_merge()
/libcore/ojluni/src/main/java/java/util/
DStringJoiner.java208 public StringJoiner merge(StringJoiner other) { in merge() method in StringJoiner
DMap.java1233 default V merge(K key, V value, in merge() method
/libcore/luni/
Dbouncycastle-license.txt7 without limitation the rights to use, copy, modify, merge, publish,
Dunicode-license.txt26 rights to use, copy, modify, merge, publish, distribute, and/or sell copies of
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DJarIndex.java95 public void merge(sun.misc.JarIndex toIndex, java.lang.String path) { in merge() method in JarIndex
/libcore/
DNOTICE42 without limitation the rights to use, copy, modify, merge, publish,
77 without limitation the rights to use, copy, modify, merge, publish,
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentMap.java477 default V merge(K key, V value, in merge() method
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DConstraintsChecker.java208 prevNC.merge(newConstraints); in mergeNameConstraints()
DBuilder.java330 constraints.merge(ncExt); in targetDistance()
/libcore/ojluni/src/main/java/java/util/stream/
DCollectors.java300 StringJoiner::add, StringJoiner::merge,
320 m1.merge(e.getKey(), e.getValue(), mergeFunction);
1320 = (map, element) -> map.merge(keyMapper.apply(element),
1472 = (map, element) -> map.merge(keyMapper.apply(element),
/libcore/ojluni/src/main/java/sun/misc/
DJarIndex.java340 public void merge(JarIndex toIndex, String path) { in merge() method in JarIndex
DURLClassPath.java1125 newIndex.merge(this.index, (pos == -1 ?
/libcore/ojluni/annotations/sdk/nullability/java/util/
DHashMap.annotated.java81 @libcore.util.Nullable public V merge(@libcore.util.NullFromTypeParam K key, @libcore.util.NonNull … in merge() method in HashMap
DMap.annotated.java82 @libcore.util.Nullable public default V merge(@libcore.util.NullFromTypeParam K key, @libcore.util.… in merge() method
/libcore/ojluni/annotations/mmodule/java/security/
DProvider.annotated.java81 public synchronized java.lang.Object merge(java.lang.Object key, java.lang.Object value, java.util.… in merge() method in Provider
/libcore/ojluni/src/main/java/sun/security/x509/
DNameConstraintsExtension.java335 public void merge(NameConstraintsExtension newConstraints) in merge() method in NameConstraintsExtension
/libcore/ojluni/src/main/java/java/security/
DProvider.java605 …public synchronized Object merge(Object key, Object value, BiFunction<? super Object, ? super Obj… in merge() method in Provider
809 legacyStrings.merge((String)key, (String)value, in implMerge()
812 return super.merge(key, value, remappingFunction); in implMerge()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMap8Test.java147 assertEquals("Y", map.merge(six, "Y", (x, y) -> "Z")); in testMerge1()
155 assertEquals("Z", map.merge(one, "Y", (x, y) -> "Z")); in testMerge2()
163 map.merge(one, "Y", (x, y) -> null); in testMerge3()
DRecursiveActionTest.java1220 merge(lo, mid, hi); in compute()
1228 void merge(int lo, int mid, int hi) { in merge() method in RecursiveActionTest.SortTask
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DTabulatorsTest.java370 (j1, j2) -> j1.merge(j2))
379 (j1, j2) -> j1.merge(j2))
/libcore/ojluni/annotations/hiddenapi/java/util/
DHashMap.java180 public V merge( in merge() method in HashMap

12