/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | HashMap.java | 46 public HashMap(java.util.Map<? extends K, ? extends V> m) { in HashMap() 66 final void putMapEntries(java.util.Map<? extends K, ? extends V> m, boolean evict) { in putMapEntries() 102 final void treeifyBin(java.util.HashMap.Node<K, V>[] tab, int hash) { in treeifyBin() 106 public void putAll(java.util.Map<? extends K, ? extends V> m) { in putAll() 164 K key, java.util.function.Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() 170 java.util.function.BiFunction<? super K, ? super V, ? extends V> remappingFunction) { in computeIfPresent() 176 java.util.function.BiFunction<? super K, ? super V, ? extends V> remappingFunction) { in compute() 187 public void forEach(java.util.function.BiConsumer<? super K, ? super V> action) { in forEach() 192 java.util.function.BiFunction<? super K, ? super V, ? extends V> function) { in replaceAll() 217 java.util.HashMap.Node<K, V> newNode( in newNode() [all …]
|
D | LinkedHashMap.java | 45 public LinkedHashMap(java.util.Map<? extends K, ? extends V> m) { in LinkedHashMap() 53 private void linkNodeLast(java.util.LinkedHashMap.LinkedHashMapEntry<K, V> p) { in linkNodeLast() 58 java.util.LinkedHashMap.LinkedHashMapEntry<K, V> src, in transferLinks() 67 java.util.HashMap.Node<K, V> newNode(int hash, K key, V value, java.util.HashMap.Node<K, V> e) { in newNode() 71 java.util.HashMap.Node<K, V> replacementNode( in replacementNode() 77 int hash, K key, V value, java.util.HashMap.Node<K, V> next) { in newTreeNode() 82 java.util.HashMap.Node<K, V> p, java.util.HashMap.Node<K, V> next) { in replacementTreeNode() 86 void afterNodeRemoval(java.util.HashMap.Node<K, V> e) { in afterNodeRemoval() 94 void afterNodeAccess(java.util.HashMap.Node<K, V> e) { in afterNodeAccess() 123 protected boolean removeEldestEntry(java.util.Map.Entry<K, V> eldest) { in removeEldestEntry() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | MapOfTest.java | 166 private static<K, V> void assertUnmodifiable(Map<K, V> map, K exampleKey, V exampleValue) { in assertUnmodifiable() 187 Map.Entry<K, V>...entries) { in assertBehaviorCommonToAllOfInstances() 193 private static<K, V> void assertBehaviorCommonToAllOfInstances(Map<K, V> expected, in assertBehaviorCommonToAllOfInstances() 200 private static<K, V> void assertDoesNotSupportNull(Map<K, V> map) { in assertDoesNotSupportNull() 206 private static<K, V> void assertMapEquals(Map<K, V> expected, Map<K, V> actual) { in assertMapEquals() 237 private<K, V> Map<K, V> create(Map.Entry<K, V>... entries) { in create() 246 private static<K, V> Map<K, V> hashMapOf(Map.Entry<K, V>... entries) { in hashMapOf() 256 private<K,V> K k(int index, Map.Entry<K, V>... entries) { in k() 259 private<K,V> V v(int index, Map.Entry<K, V>... entries) { in v() 264 <K, V> Map<K, V> create(Map.Entry<K, V>... e) { in create() [all …]
|
/libcore/ojluni/annotations/sdk/nullability/java/util/concurrent/ |
D | ConcurrentHashMap.annotated.java | 58 …bcore.util.NonNull K,? extends @libcore.util.NonNull V> m) { throw new RuntimeException("Stub!"); } in ConcurrentHashMap() 76 …bcore.util.NonNull K,? extends @libcore.util.NonNull V> m) { throw new RuntimeException("Stub!"); } in putAll() 104 …re.util.NonNull K,? super @libcore.util.NonNull V> action) { throw new RuntimeException("Stub!"); } in forEach() 106 …ull K,? super @libcore.util.NonNull V,? extends @libcore.util.NonNull V> function) { throw new Run… in replaceAll() 108 …Absent(@libcore.util.NonNull K key, @libcore.util.NonNull java.util.function.Function<? super @lib… in computeIfAbsent() 110 …esent(@libcore.util.NonNull K key, @libcore.util.NonNull java.util.function.BiFunction<? super @li… in computeIfPresent() 112 …mpute(@libcore.util.NonNull K key, @libcore.util.NonNull java.util.function.BiFunction<? super @li… in compute() 130 …forEach(long parallelismThreshold, @libcore.util.NonNull java.util.function.BiConsumer<? super @li… in forEach() 132 …forEach(long parallelismThreshold, @libcore.util.NonNull java.util.function.BiFunction<? super @li… in forEach() 134 … search(long parallelismThreshold, @libcore.util.NonNull java.util.function.BiFunction<? super @li… in search() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentHashMap.java | 637 Node(int hash, K key, V val, Node<K,V> next) { in Node() method in ConcurrentHashMap.Node 759 static final <K,V> Node<K,V> tabAt(Node<K,V>[] tab, int i) { in tabAt() 763 static final <K,V> boolean casTabAt(Node<K,V>[] tab, int i, in casTabAt() 768 static final <K,V> void setTabAt(Node<K,V>[] tab, int i, Node<K,V> v) { in setTabAt() 850 public ConcurrentHashMap(Map<? extends K, ? extends V> m) { in ConcurrentHashMap() 1086 public void putAll(Map<? extends K, ? extends V> m) { in putAll() 1602 public void forEach(BiConsumer<? super K, ? super V> action) { in forEach() 1613 public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { in replaceAll() 1635 boolean removeEntryIf(Predicate<? super Entry<K,V>> function) { in removeEntryIf() 1696 public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() [all …]
|
D | ConcurrentMap.java | 110 default void forEach(BiConsumer<? super K, ? super V> action) { in forEach() 285 default void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { in replaceAll() 326 Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() 368 BiFunction<? super K, ? super V, ? extends V> remappingFunction) { in computeIfPresent() 416 BiFunction<? super K, ? super V, ? extends V> remappingFunction) { in compute()
|
/libcore/ojluni/annotations/flagged_api/java/util/ |
D | HashMap.annotated.java | 38 public HashMap(java.util.Map<? extends K,? extends V> m) { throw new RuntimeException("Stub!"); } in HashMap() 50 public void putAll(java.util.Map<? extends K,? extends V> m) { throw new RuntimeException("Stub!");… in putAll() 74 public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)… in computeIfAbsent() 76 public V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> rem… in computeIfPresent() 78 public V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFun… in compute() 82 public void forEach(java.util.function.BiConsumer<? super K,? super V> action) { throw new RuntimeE… in forEach() 84 public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) { t… in replaceAll()
|
D | TreeMap.annotated.java | 37 public TreeMap(java.util.Map<? extends K,? extends V> m) { throw new RuntimeException("Stub!"); } in TreeMap() 39 public TreeMap(java.util.SortedMap<K,? extends V> m) { throw new RuntimeException("Stub!"); } in TreeMap() 61 public void putAll(java.util.Map<? extends K,? extends V> map) { throw new RuntimeException("Stub!"… in putAll() 67 public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)… in computeIfAbsent() 69 public V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> rem… in computeIfPresent() 71 public V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFun… in compute() 133 public void forEach(java.util.function.BiConsumer<? super K,? super V> action) { throw new RuntimeE… in forEach() 135 public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) { t… in replaceAll()
|
D | LinkedHashMap.annotated.java | 38 public LinkedHashMap(java.util.Map<? extends K,? extends V> m) { throw new RuntimeException("Stub!"… in LinkedHashMap() 56 protected boolean removeEldestEntry(java.util.Map.Entry<K,V> eldest) { throw new RuntimeException("… in removeEldestEntry() 73 public void forEach(java.util.function.BiConsumer<? super K,? super V> action) { throw new RuntimeE… in forEach() 75 public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) { t… in replaceAll()
|
D | Collections.annotated.java | 90 public static <K, V> java.util.Map<K,V> unmodifiableMap(java.util.Map<? extends K,? extends V> m) {… in unmodifiableMap() 93 …K, V> java.util.SequencedMap<K,V> unmodifiableSequencedMap(java.util.SequencedMap<? extends K,? ex… in unmodifiableSequencedMap() 95 public static <K, V> java.util.SortedMap<K,V> unmodifiableSortedMap(java.util.SortedMap<K,? extends… in unmodifiableSortedMap() 97 public static <K, V> java.util.NavigableMap<K,V> unmodifiableNavigableMap(java.util.NavigableMap<K,… in unmodifiableNavigableMap() 109 public static <K, V> java.util.Map<K,V> synchronizedMap(java.util.Map<K,V> m) { throw new RuntimeEx… in synchronizedMap() 111 public static <K, V> java.util.SortedMap<K,V> synchronizedSortedMap(java.util.SortedMap<K,V> m) { t… in synchronizedSortedMap() 113 public static <K, V> java.util.NavigableMap<K,V> synchronizedNavigableMap(java.util.NavigableMap<K,… in synchronizedNavigableMap() 127 public static <K, V> java.util.Map<K,V> checkedMap(java.util.Map<K,V> m, java.lang.Class<K> keyType… in checkedMap() 129 public static <K, V> java.util.SortedMap<K,V> checkedSortedMap(java.util.SortedMap<K,V> m, java.lan… in checkedSortedMap() 131 public static <K, V> java.util.NavigableMap<K,V> checkedNavigableMap(java.util.NavigableMap<K,V> m,… in checkedNavigableMap()
|
D | Map.annotated.java | 46 public void putAll(java.util.Map<? extends K,? extends V> m); in putAll() 62 public default void forEach(java.util.function.BiConsumer<? super K,? super V> action) { throw new … in forEach() 64 public default void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> funct… in replaceAll() 74 public default V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingF… in computeIfAbsent() 76 public default V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extend… in computeIfPresent() 78 public default V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> rema… in compute() 105 public static <K, V> java.util.Map<K,V> ofEntries(java.util.Map.Entry<? extends K,? extends V>... e… in ofEntries() 109 public static <K, V> java.util.Map<K,V> copyOf(java.util.Map<? extends K,? extends V> map) { throw … in copyOf() 132 public static <K, V> java.util.Map.Entry<K,V> copyOf(java.util.Map.Entry<? extends K,? extends V> e… in copyOf()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | HashMap.annotated.java | 39 …peParam K, ? extends @libcore.util.NullFromTypeParam V> m) { throw new RuntimeException("Stub!"); } in HashMap() 51 …ypeParam K,? extends @libcore.util.NullFromTypeParam V> m) { throw new RuntimeException("Stub!"); } in putAll() 75 ….util.NullFromTypeParam K key, @libcore.util.NonNull java.util.function.Function<? super @libcore.… in computeIfAbsent() 77 …util.NullFromTypeParam K key, @libcore.util.NonNull java.util.function.BiFunction<? super @libcore… in computeIfPresent() 79 …util.NullFromTypeParam K key, @libcore.util.NonNull java.util.function.BiFunction<? super @libcore… in compute() 83 …ypeParam K,? super @libcore.util.NullFromTypeParam V> action) { throw new RuntimeException("Stub!"… in forEach() 85 …omTypeParam K,? super @libcore.util.NullFromTypeParam V,? extends @libcore.util.NullFromTypeParam … in replaceAll()
|
D | WeakHashMap.annotated.java | 41 …ypeParam K,? extends @libcore.util.NullFromTypeParam V> m) { throw new RuntimeException("Stub!"); } in WeakHashMap() 53 …ypeParam K,? extends @libcore.util.NullFromTypeParam V> m) { throw new RuntimeException("Stub!"); } in putAll() 67 …ypeParam K,? super @libcore.util.NullFromTypeParam V> action) { throw new RuntimeException("Stub!"… in forEach() 69 …omTypeParam K,? super @libcore.util.NullFromTypeParam V,? extends @libcore.util.NullFromTypeParam … in replaceAll()
|
D | Collections.annotated.java | 86 …il.NullFromTypeParam V> unmodifiableMap(@libcore.util.NonNull java.util.Map<? extends @libcore.uti… in unmodifiableMap() 88 …ore.util.NullFromTypeParam V> unmodifiableSortedMap(@libcore.util.NonNull java.util.SortedMap<@lib… in unmodifiableSortedMap() 90 …ibcore.util.NullFromTypeParam V> unmodifiableNavigableMap(@libcore.util.NonNull java.util.Navigabl… in unmodifiableNavigableMap() 102 …il.NullFromTypeParam V> synchronizedMap(@libcore.util.NonNull java.util.Map<@libcore.util.NullFrom… in synchronizedMap() 104 …ore.util.NullFromTypeParam V> synchronizedSortedMap(@libcore.util.NonNull java.util.SortedMap<@lib… in synchronizedSortedMap() 106 …ibcore.util.NullFromTypeParam V> synchronizedNavigableMap(@libcore.util.NonNull java.util.Navigabl… in synchronizedNavigableMap() 120 …il.NullFromTypeParam V> checkedMap(@libcore.util.NonNull java.util.Map<@libcore.util.NullFromTypeP… in checkedMap() 122 …ore.util.NullFromTypeParam V> checkedSortedMap(@libcore.util.NonNull java.util.SortedMap<@libcore.… in checkedSortedMap() 124 …ibcore.util.NullFromTypeParam V> checkedNavigableMap(@libcore.util.NonNull java.util.NavigableMap<… in checkedNavigableMap() 176 …e.util.NonNull java.util.SequencedMap<? extends K,? extends V> m) { throw new RuntimeException("St… in unmodifiableSequencedMap()
|
D | TreeMap.annotated.java | 38 …ypeParam K,? extends @libcore.util.NullFromTypeParam V> m) { throw new RuntimeException("Stub!"); } in TreeMap() 40 …ypeParam K,? extends @libcore.util.NullFromTypeParam V> m) { throw new RuntimeException("Stub!"); } in TreeMap() 56 …eParam K,? extends @libcore.util.NullFromTypeParam V> map) { throw new RuntimeException("Stub!"); } in putAll() 118 …ypeParam K,? super @libcore.util.NullFromTypeParam V> action) { throw new RuntimeException("Stub!"… in forEach() 120 …omTypeParam K,? super @libcore.util.NullFromTypeParam V,? extends @libcore.util.NullFromTypeParam … in replaceAll()
|
/libcore/ojluni/src/main/java/java/util/ |
D | LinkedHashMap.java | 225 Entry(int hash, K key, V value, Node<K,V> next) { in Entry() 254 private void linkNodeAtEnd(LinkedHashMap.Entry<K,V> p) { in linkNodeAtEnd() 277 private void transferLinks(LinkedHashMap.Entry<K,V> src, in transferLinks() 298 Node<K,V> newNode(int hash, K key, V value, Node<K,V> e) { in newNode() 305 Node<K,V> replacementNode(Node<K,V> p, Node<K,V> next) { in replacementNode() 313 TreeNode<K,V> newTreeNode(int hash, K key, V value, Node<K,V> next) { in newTreeNode() 319 TreeNode<K,V> replacementTreeNode(Node<K,V> p, Node<K,V> next) { in replacementTreeNode() 326 void afterNodeRemoval(Node<K,V> e) { // unlink in afterNodeRemoval() 354 void afterNodeAccess(Node<K,V> e) { in afterNodeAccess() 495 public LinkedHashMap(Map<? extends K, ? extends V> m) { in LinkedHashMap() [all …]
|
D | TreeMap.java | 197 public TreeMap(Map<? extends K, ? extends V> m) { in TreeMap() 211 public TreeMap(SortedMap<K, ? extends V> m) { in TreeMap() 349 public void putAll(Map<? extends K, ? extends V> map) { in putAll() 589 public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() 659 …public V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) { in computeIfPresent() 680 public V compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) { in compute() 782 … private V callMappingFunctionWithCheck(K key, Function<? super K, ? extends V> mappingFunction) { in callMappingFunctionWithCheck() 791 …private V callRemappingFunctionWithCheck(K key, V oldValue, BiFunction<? super K, ? super V, ? ext… in callRemappingFunctionWithCheck() 800 private void addEntry(K key, V value, TreeMapEntry<K, V> parent, boolean addToLeft) { in addEntry() 868 …private V remapValue(TreeMapEntry<K,V> t, K key, BiFunction<? super K, ? super V, ? extends V> rem… in remapValue() [all …]
|
D | HashMap.java | 286 Node(int hash, K key, V value, Node<K,V> next) { in Node() method in HashMap.Node 489 public HashMap(Map<? extends K, ? extends V> m) { in HashMap() 501 final void putMapEntries(Map<? extends K, ? extends V> m, boolean evict) { in putMapEntries() 760 final void treeifyBin(Node<K,V>[] tab, int hash) { in treeifyBin() 789 public void putAll(Map<? extends K, ? extends V> m) { in putAll() 1127 public final void forEach(Consumer<? super Map.Entry<K,V>> action) { in forEach() 1198 Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() 1264 BiFunction<? super K, ? super V, ? extends V> remappingFunction) { in computeIfPresent() 1298 BiFunction<? super K, ? super V, ? extends V> remappingFunction) { in compute() 1423 public void forEach(BiConsumer<? super K, ? super V> action) { in forEach() [all …]
|
D | ReverseOrderSortedMapView.java | 37 private ReverseOrderSortedMapView(SortedMap<K, V> map) { in ReverseOrderSortedMapView() 42 public static <K, V> SortedMap<K, V> of(SortedMap<K, V> map) { in of() 86 public void putAll(Map<? extends K, ? extends V> m) { in putAll()
|
D | WeakHashMap.java | 253 public WeakHashMap(Map<? extends K, ? extends V> m) { in WeakHashMap() 285 private boolean matchesKey(Entry<K,V> e, Object key) { in matchesKey() 517 private void transfer(Entry<K,V>[] src, Entry<K,V>[] dest) { in transfer() 545 public void putAll(Map<? extends K, ? extends V> m) { in putAll() 716 int hash, Entry<K,V> next) { in Entry() 1017 public void forEach(BiConsumer<? super K, ? super V> action) { in forEach() 1039 public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { in replaceAll() 1071 WeakHashMapSpliterator(WeakHashMap<K,V> m, int origin, in WeakHashMapSpliterator() 1101 KeySpliterator(WeakHashMap<K,V> m, int origin, int fence, int est, in KeySpliterator() 1181 ValueSpliterator(WeakHashMap<K,V> m, int origin, int fence, int est, in ValueSpliterator() [all …]
|
/libcore/ojluni/annotations/mmodule/java/util/ |
D | LinkedHashMap.annotated.java | 39 public LinkedHashMap(java.util.Map<? extends K, ? extends V> m) { throw new RuntimeException("Stub!… in LinkedHashMap() 54 protected boolean removeEldestEntry(java.util.Map.Entry<K,V> eldest) { throw new RuntimeException("… in removeEldestEntry() 62 public void forEach(java.util.function.BiConsumer<? super K,? super V> action) { throw new RuntimeE… in forEach() 64 public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) { t… in replaceAll()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | GroupByOpTest.java | 155 …static <K, V> void assertMultiMapEquals(Map<K, ? extends Collection<V>> a, Map<K, ? extends Collec… in assertMultiMapEquals() 159 …static<K, V> boolean multiMapEquals(Map<K, ? extends Collection<V>> a, Map<K, ? extends Collection… in multiMapEquals()
|
/libcore/ojluni/src/test/java/util/Map/ |
D | EntryComparators.java | 46 Comparator<Map.Entry<K, V>> ck, in assertPairComparison()
|
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/ |
D | ConcurrentSkipListMap.annotated.java | 46 public ConcurrentSkipListMap(java.util.Map<? extends K,? extends V> m) { throw new RuntimeException… in ConcurrentSkipListMap() 48 public ConcurrentSkipListMap(java.util.SortedMap<K,? extends V> m) { throw new RuntimeException("St… in ConcurrentSkipListMap() 70 public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)… in computeIfAbsent() 72 public V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> rem… in computeIfPresent() 74 public V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFun… in compute() 148 public void forEach(java.util.function.BiConsumer<? super K,? super V> action) { throw new RuntimeE… in forEach() 150 public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) { t… in replaceAll()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | DelegatingIteratorForEachRemaining.java | 120 public ForwardingMap(Map<K, V> delegate) { in ForwardingMap() 131 @Override public void putAll(Map<? extends K, ? extends V> map) { delegate.putAll(map); } in putAll() 139 …@Override public void forEach(BiConsumer<? super K, ? super V> action) { delegate.forEach(action);… in forEach() 140 …@Override public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { delegat… in replaceAll() 145 …@Override public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { retu… in computeIfAbsent() 146 …@Override public V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remapping… in computeIfPresent() 147 …@Override public V compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction)… in compute() 152 public ThrowingMap(Map<K, V> delegate) { in ThrowingMap()
|