1 /* 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.util; 27 28 import dalvik.annotation.compat.UnsupportedAppUsage; 29 30 @SuppressWarnings({"unchecked", "deprecation", "all"}) 31 public class HashMap<K, V> extends java.util.AbstractMap<K, V> 32 implements java.util.Map<K, V>, java.lang.Cloneable, java.io.Serializable { 33 HashMap(int initialCapacity, float loadFactor)34 public HashMap(int initialCapacity, float loadFactor) { 35 throw new RuntimeException("Stub!"); 36 } 37 HashMap(int initialCapacity)38 public HashMap(int initialCapacity) { 39 throw new RuntimeException("Stub!"); 40 } 41 HashMap()42 public HashMap() { 43 throw new RuntimeException("Stub!"); 44 } 45 HashMap(java.util.Map<? extends K, ? extends V> m)46 public HashMap(java.util.Map<? extends K, ? extends V> m) { 47 throw new RuntimeException("Stub!"); 48 } 49 hash(java.lang.Object key)50 static final int hash(java.lang.Object key) { 51 throw new RuntimeException("Stub!"); 52 } 53 comparableClassFor(java.lang.Object x)54 static java.lang.Class<?> comparableClassFor(java.lang.Object x) { 55 throw new RuntimeException("Stub!"); 56 } 57 compareComparables(java.lang.Class<?> kc, java.lang.Object k, java.lang.Object x)58 static int compareComparables(java.lang.Class<?> kc, java.lang.Object k, java.lang.Object x) { 59 throw new RuntimeException("Stub!"); 60 } 61 tableSizeFor(int cap)62 static final int tableSizeFor(int cap) { 63 throw new RuntimeException("Stub!"); 64 } 65 putMapEntries(java.util.Map<? extends K, ? extends V> m, boolean evict)66 final void putMapEntries(java.util.Map<? extends K, ? extends V> m, boolean evict) { 67 throw new RuntimeException("Stub!"); 68 } 69 size()70 public int size() { 71 throw new RuntimeException("Stub!"); 72 } 73 isEmpty()74 public boolean isEmpty() { 75 throw new RuntimeException("Stub!"); 76 } 77 get(java.lang.Object key)78 public V get(java.lang.Object key) { 79 throw new RuntimeException("Stub!"); 80 } 81 getNode(int hash, java.lang.Object key)82 final java.util.HashMap.Node<K, V> getNode(int hash, java.lang.Object key) { 83 throw new RuntimeException("Stub!"); 84 } 85 containsKey(java.lang.Object key)86 public boolean containsKey(java.lang.Object key) { 87 throw new RuntimeException("Stub!"); 88 } 89 put(K key, V value)90 public V put(K key, V value) { 91 throw new RuntimeException("Stub!"); 92 } 93 putVal(int hash, K key, V value, boolean onlyIfAbsent, boolean evict)94 final V putVal(int hash, K key, V value, boolean onlyIfAbsent, boolean evict) { 95 throw new RuntimeException("Stub!"); 96 } 97 resize()98 final java.util.HashMap.Node<K, V>[] resize() { 99 throw new RuntimeException("Stub!"); 100 } 101 treeifyBin(java.util.HashMap.Node<K, V>[] tab, int hash)102 final void treeifyBin(java.util.HashMap.Node<K, V>[] tab, int hash) { 103 throw new RuntimeException("Stub!"); 104 } 105 putAll(java.util.Map<? extends K, ? extends V> m)106 public void putAll(java.util.Map<? extends K, ? extends V> m) { 107 throw new RuntimeException("Stub!"); 108 } 109 remove(java.lang.Object key)110 public V remove(java.lang.Object key) { 111 throw new RuntimeException("Stub!"); 112 } 113 removeNode( int hash, java.lang.Object key, java.lang.Object value, boolean matchValue, boolean movable)114 final java.util.HashMap.Node<K, V> removeNode( 115 int hash, 116 java.lang.Object key, 117 java.lang.Object value, 118 boolean matchValue, 119 boolean movable) { 120 throw new RuntimeException("Stub!"); 121 } 122 clear()123 public void clear() { 124 throw new RuntimeException("Stub!"); 125 } 126 containsValue(java.lang.Object value)127 public boolean containsValue(java.lang.Object value) { 128 throw new RuntimeException("Stub!"); 129 } 130 keySet()131 public java.util.Set<K> keySet() { 132 throw new RuntimeException("Stub!"); 133 } 134 values()135 public java.util.Collection<V> values() { 136 throw new RuntimeException("Stub!"); 137 } 138 entrySet()139 public java.util.Set<java.util.Map.Entry<K, V>> entrySet() { 140 throw new RuntimeException("Stub!"); 141 } 142 getOrDefault(java.lang.Object key, V defaultValue)143 public V getOrDefault(java.lang.Object key, V defaultValue) { 144 throw new RuntimeException("Stub!"); 145 } 146 putIfAbsent(K key, V value)147 public V putIfAbsent(K key, V value) { 148 throw new RuntimeException("Stub!"); 149 } 150 remove(java.lang.Object key, java.lang.Object value)151 public boolean remove(java.lang.Object key, java.lang.Object value) { 152 throw new RuntimeException("Stub!"); 153 } 154 replace(K key, V oldValue, V newValue)155 public boolean replace(K key, V oldValue, V newValue) { 156 throw new RuntimeException("Stub!"); 157 } 158 replace(K key, V value)159 public V replace(K key, V value) { 160 throw new RuntimeException("Stub!"); 161 } 162 computeIfAbsent( K key, java.util.function.Function<? super K, ? extends V> mappingFunction)163 public V computeIfAbsent( 164 K key, java.util.function.Function<? super K, ? extends V> mappingFunction) { 165 throw new RuntimeException("Stub!"); 166 } 167 computeIfPresent( K key, java.util.function.BiFunction<? super K, ? super V, ? extends V> remappingFunction)168 public V computeIfPresent( 169 K key, 170 java.util.function.BiFunction<? super K, ? super V, ? extends V> remappingFunction) { 171 throw new RuntimeException("Stub!"); 172 } 173 compute( K key, java.util.function.BiFunction<? super K, ? super V, ? extends V> remappingFunction)174 public V compute( 175 K key, 176 java.util.function.BiFunction<? super K, ? super V, ? extends V> remappingFunction) { 177 throw new RuntimeException("Stub!"); 178 } 179 merge( K key, V value, java.util.function.BiFunction<? super V, ? super V, ? extends V> remappingFunction)180 public V merge( 181 K key, 182 V value, 183 java.util.function.BiFunction<? super V, ? super V, ? extends V> remappingFunction) { 184 throw new RuntimeException("Stub!"); 185 } 186 forEach(java.util.function.BiConsumer<? super K, ? super V> action)187 public void forEach(java.util.function.BiConsumer<? super K, ? super V> action) { 188 throw new RuntimeException("Stub!"); 189 } 190 replaceAll( java.util.function.BiFunction<? super K, ? super V, ? extends V> function)191 public void replaceAll( 192 java.util.function.BiFunction<? super K, ? super V, ? extends V> function) { 193 throw new RuntimeException("Stub!"); 194 } 195 clone()196 public java.lang.Object clone() { 197 throw new RuntimeException("Stub!"); 198 } 199 loadFactor()200 final float loadFactor() { 201 throw new RuntimeException("Stub!"); 202 } 203 capacity()204 final int capacity() { 205 throw new RuntimeException("Stub!"); 206 } 207 writeObject(java.io.ObjectOutputStream s)208 private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { 209 throw new RuntimeException("Stub!"); 210 } 211 readObject(java.io.ObjectInputStream s)212 private void readObject(java.io.ObjectInputStream s) 213 throws java.lang.ClassNotFoundException, java.io.IOException { 214 throw new RuntimeException("Stub!"); 215 } 216 newNode( int hash, K key, V value, java.util.HashMap.Node<K, V> next)217 java.util.HashMap.Node<K, V> newNode( 218 int hash, K key, V value, java.util.HashMap.Node<K, V> next) { 219 throw new RuntimeException("Stub!"); 220 } 221 replacementNode( java.util.HashMap.Node<K, V> p, java.util.HashMap.Node<K, V> next)222 java.util.HashMap.Node<K, V> replacementNode( 223 java.util.HashMap.Node<K, V> p, java.util.HashMap.Node<K, V> next) { 224 throw new RuntimeException("Stub!"); 225 } 226 newTreeNode( int hash, K key, V value, java.util.HashMap.Node<K, V> next)227 java.util.HashMap.TreeNode<K, V> newTreeNode( 228 int hash, K key, V value, java.util.HashMap.Node<K, V> next) { 229 throw new RuntimeException("Stub!"); 230 } 231 replacementTreeNode( java.util.HashMap.Node<K, V> p, java.util.HashMap.Node<K, V> next)232 java.util.HashMap.TreeNode<K, V> replacementTreeNode( 233 java.util.HashMap.Node<K, V> p, java.util.HashMap.Node<K, V> next) { 234 throw new RuntimeException("Stub!"); 235 } 236 reinitialize()237 void reinitialize() { 238 throw new RuntimeException("Stub!"); 239 } 240 afterNodeAccess(java.util.HashMap.Node<K, V> p)241 void afterNodeAccess(java.util.HashMap.Node<K, V> p) { 242 throw new RuntimeException("Stub!"); 243 } 244 afterNodeInsertion(boolean evict)245 void afterNodeInsertion(boolean evict) { 246 throw new RuntimeException("Stub!"); 247 } 248 afterNodeRemoval(java.util.HashMap.Node<K, V> p)249 void afterNodeRemoval(java.util.HashMap.Node<K, V> p) { 250 throw new RuntimeException("Stub!"); 251 } 252 internalWriteEntries(java.io.ObjectOutputStream s)253 void internalWriteEntries(java.io.ObjectOutputStream s) throws java.io.IOException { 254 throw new RuntimeException("Stub!"); 255 } 256 257 static final int DEFAULT_INITIAL_CAPACITY = 16; // 0x10 258 259 static final float DEFAULT_LOAD_FACTOR = 0.75f; 260 261 static final int MAXIMUM_CAPACITY = 1073741824; // 0x40000000 262 263 static final int MIN_TREEIFY_CAPACITY = 64; // 0x40 264 265 static final int TREEIFY_THRESHOLD = 8; // 0x8 266 267 static final int UNTREEIFY_THRESHOLD = 6; // 0x6 268 269 transient java.util.Set<java.util.Map.Entry<K, V>> entrySet; 270 271 final float loadFactor; 272 273 { 274 loadFactor = 0; 275 } 276 277 @UnsupportedAppUsage 278 transient int modCount; 279 280 private static final long serialVersionUID = 362498820763181265L; // 0x507dac1c31660d1L 281 282 transient int size; 283 284 @UnsupportedAppUsage 285 transient java.util.HashMap.Node<K, V>[] table; 286 287 int threshold; 288 289 @SuppressWarnings({"unchecked", "deprecation", "all"}) 290 final class EntryIterator extends java.util.HashMap.HashIterator 291 implements java.util.Iterator<java.util.Map.Entry<K, V>> { 292 293 @UnsupportedAppUsage(trackingBug = 122551864) next()294 public java.util.Map.Entry<K, V> next() { 295 throw new RuntimeException("Stub!"); 296 } 297 } 298 299 @SuppressWarnings({"unchecked", "deprecation", "all"}) 300 final class EntrySet extends java.util.AbstractSet<java.util.Map.Entry<K, V>> { 301 EntrySet()302 EntrySet() { 303 throw new RuntimeException("Stub!"); 304 } 305 size()306 public int size() { 307 throw new RuntimeException("Stub!"); 308 } 309 clear()310 public void clear() { 311 throw new RuntimeException("Stub!"); 312 } 313 iterator()314 public java.util.Iterator<java.util.Map.Entry<K, V>> iterator() { 315 throw new RuntimeException("Stub!"); 316 } 317 contains(java.lang.Object o)318 public boolean contains(java.lang.Object o) { 319 throw new RuntimeException("Stub!"); 320 } 321 remove(java.lang.Object o)322 public boolean remove(java.lang.Object o) { 323 throw new RuntimeException("Stub!"); 324 } 325 spliterator()326 public java.util.Spliterator<java.util.Map.Entry<K, V>> spliterator() { 327 throw new RuntimeException("Stub!"); 328 } 329 forEach(java.util.function.Consumer<? super java.util.Map.Entry<K, V>> action)330 public void forEach(java.util.function.Consumer<? super java.util.Map.Entry<K, V>> action) { 331 throw new RuntimeException("Stub!"); 332 } 333 } 334 335 @SuppressWarnings({"unchecked", "deprecation", "all"}) 336 static final class EntrySpliterator<K, V> extends java.util.HashMap.HashMapSpliterator<K, V> 337 implements java.util.Spliterator<java.util.Map.Entry<K, V>> { 338 EntrySpliterator( java.util.HashMap<K, V> m, int origin, int fence, int est, int expectedModCount)339 EntrySpliterator( 340 java.util.HashMap<K, V> m, int origin, int fence, int est, int expectedModCount) { 341 super(null, 0, 0, 0, 0); 342 throw new RuntimeException("Stub!"); 343 } 344 trySplit()345 public java.util.HashMap.EntrySpliterator<K, V> trySplit() { 346 throw new RuntimeException("Stub!"); 347 } 348 forEachRemaining( java.util.function.Consumer<? super java.util.Map.Entry<K, V>> action)349 public void forEachRemaining( 350 java.util.function.Consumer<? super java.util.Map.Entry<K, V>> action) { 351 throw new RuntimeException("Stub!"); 352 } 353 tryAdvance( java.util.function.Consumer<? super java.util.Map.Entry<K, V>> action)354 public boolean tryAdvance( 355 java.util.function.Consumer<? super java.util.Map.Entry<K, V>> action) { 356 throw new RuntimeException("Stub!"); 357 } 358 characteristics()359 public int characteristics() { 360 throw new RuntimeException("Stub!"); 361 } 362 } 363 364 @SuppressWarnings({"unchecked", "deprecation", "all"}) 365 abstract class HashIterator { 366 HashIterator()367 HashIterator() { 368 throw new RuntimeException("Stub!"); 369 } 370 hasNext()371 public final boolean hasNext() { 372 throw new RuntimeException("Stub!"); 373 } 374 nextNode()375 final java.util.HashMap.Node<K, V> nextNode() { 376 throw new RuntimeException("Stub!"); 377 } 378 remove()379 public final void remove() { 380 throw new RuntimeException("Stub!"); 381 } 382 383 java.util.HashMap.Node<K, V> current; 384 385 int expectedModCount; 386 387 int index; 388 389 java.util.HashMap.Node<K, V> next; 390 } 391 392 @SuppressWarnings({"unchecked", "deprecation", "all"}) 393 static class HashMapSpliterator<K, V> { 394 HashMapSpliterator( java.util.HashMap<K, V> m, int origin, int fence, int est, int expectedModCount)395 HashMapSpliterator( 396 java.util.HashMap<K, V> m, int origin, int fence, int est, int expectedModCount) { 397 throw new RuntimeException("Stub!"); 398 } 399 getFence()400 final int getFence() { 401 throw new RuntimeException("Stub!"); 402 } 403 estimateSize()404 public final long estimateSize() { 405 throw new RuntimeException("Stub!"); 406 } 407 408 java.util.HashMap.Node<K, V> current; 409 410 int est; 411 412 int expectedModCount; 413 414 int fence; 415 416 int index; 417 418 final java.util.HashMap<K, V> map; 419 420 { 421 map = null; 422 } 423 } 424 425 @SuppressWarnings({"unchecked", "deprecation", "all"}) 426 final class KeyIterator extends java.util.HashMap.HashIterator 427 implements java.util.Iterator<K> { 428 next()429 public K next() { 430 throw new RuntimeException("Stub!"); 431 } 432 } 433 434 @SuppressWarnings({"unchecked", "deprecation", "all"}) 435 final class KeySet extends java.util.AbstractSet<K> { 436 KeySet()437 KeySet() { 438 throw new RuntimeException("Stub!"); 439 } 440 size()441 public int size() { 442 throw new RuntimeException("Stub!"); 443 } 444 clear()445 public void clear() { 446 throw new RuntimeException("Stub!"); 447 } 448 iterator()449 public java.util.Iterator<K> iterator() { 450 throw new RuntimeException("Stub!"); 451 } 452 contains(java.lang.Object o)453 public boolean contains(java.lang.Object o) { 454 throw new RuntimeException("Stub!"); 455 } 456 remove(java.lang.Object key)457 public boolean remove(java.lang.Object key) { 458 throw new RuntimeException("Stub!"); 459 } 460 spliterator()461 public java.util.Spliterator<K> spliterator() { 462 throw new RuntimeException("Stub!"); 463 } 464 forEach(java.util.function.Consumer<? super K> action)465 public void forEach(java.util.function.Consumer<? super K> action) { 466 throw new RuntimeException("Stub!"); 467 } 468 } 469 470 @SuppressWarnings({"unchecked", "deprecation", "all"}) 471 static final class KeySpliterator<K, V> extends java.util.HashMap.HashMapSpliterator<K, V> 472 implements java.util.Spliterator<K> { 473 KeySpliterator( java.util.HashMap<K, V> m, int origin, int fence, int est, int expectedModCount)474 KeySpliterator( 475 java.util.HashMap<K, V> m, int origin, int fence, int est, int expectedModCount) { 476 super(null, 0, 0, 0, 0); 477 throw new RuntimeException("Stub!"); 478 } 479 trySplit()480 public java.util.HashMap.KeySpliterator<K, V> trySplit() { 481 throw new RuntimeException("Stub!"); 482 } 483 forEachRemaining(java.util.function.Consumer<? super K> action)484 public void forEachRemaining(java.util.function.Consumer<? super K> action) { 485 throw new RuntimeException("Stub!"); 486 } 487 tryAdvance(java.util.function.Consumer<? super K> action)488 public boolean tryAdvance(java.util.function.Consumer<? super K> action) { 489 throw new RuntimeException("Stub!"); 490 } 491 characteristics()492 public int characteristics() { 493 throw new RuntimeException("Stub!"); 494 } 495 } 496 497 @SuppressWarnings({"unchecked", "deprecation", "all"}) 498 static class Node<K, V> implements java.util.Map.Entry<K, V> { 499 Node(int hash, K key, V value, java.util.HashMap.Node<K, V> next)500 Node(int hash, K key, V value, java.util.HashMap.Node<K, V> next) { 501 throw new RuntimeException("Stub!"); 502 } 503 getKey()504 public final K getKey() { 505 throw new RuntimeException("Stub!"); 506 } 507 getValue()508 public final V getValue() { 509 throw new RuntimeException("Stub!"); 510 } 511 toString()512 public final java.lang.String toString() { 513 throw new RuntimeException("Stub!"); 514 } 515 hashCode()516 public final int hashCode() { 517 throw new RuntimeException("Stub!"); 518 } 519 setValue(V newValue)520 public final V setValue(V newValue) { 521 throw new RuntimeException("Stub!"); 522 } 523 equals(java.lang.Object o)524 public final boolean equals(java.lang.Object o) { 525 throw new RuntimeException("Stub!"); 526 } 527 528 final int hash; 529 530 { 531 hash = 0; 532 } 533 534 @UnsupportedAppUsage 535 final K key; 536 537 { 538 key = null; 539 } 540 541 @UnsupportedAppUsage 542 java.util.HashMap.Node<K, V> next; 543 544 @UnsupportedAppUsage 545 V value; 546 } 547 548 @SuppressWarnings({"unchecked", "deprecation", "all"}) 549 static final class TreeNode<K, V> extends java.util.LinkedHashMap.LinkedHashMapEntry<K, V> { 550 TreeNode(int hash, K key, V val, java.util.HashMap.Node<K, V> next)551 TreeNode(int hash, K key, V val, java.util.HashMap.Node<K, V> next) { 552 super(0, null, null, null); 553 throw new RuntimeException("Stub!"); 554 } 555 root()556 java.util.HashMap.TreeNode<K, V> root() { 557 throw new RuntimeException("Stub!"); 558 } 559 moveRootToFront( java.util.HashMap.Node<K, V>[] tab, java.util.HashMap.TreeNode<K, V> root)560 static <K, V> void moveRootToFront( 561 java.util.HashMap.Node<K, V>[] tab, java.util.HashMap.TreeNode<K, V> root) { 562 throw new RuntimeException("Stub!"); 563 } 564 find(int h, java.lang.Object k, java.lang.Class<?> kc)565 java.util.HashMap.TreeNode<K, V> find(int h, java.lang.Object k, java.lang.Class<?> kc) { 566 throw new RuntimeException("Stub!"); 567 } 568 getTreeNode(int h, java.lang.Object k)569 java.util.HashMap.TreeNode<K, V> getTreeNode(int h, java.lang.Object k) { 570 throw new RuntimeException("Stub!"); 571 } 572 tieBreakOrder(java.lang.Object a, java.lang.Object b)573 static int tieBreakOrder(java.lang.Object a, java.lang.Object b) { 574 throw new RuntimeException("Stub!"); 575 } 576 treeify(java.util.HashMap.Node<K, V>[] tab)577 void treeify(java.util.HashMap.Node<K, V>[] tab) { 578 throw new RuntimeException("Stub!"); 579 } 580 untreeify(java.util.HashMap<K, V> map)581 java.util.HashMap.Node<K, V> untreeify(java.util.HashMap<K, V> map) { 582 throw new RuntimeException("Stub!"); 583 } 584 putTreeVal( java.util.HashMap<K, V> map, java.util.HashMap.Node<K, V>[] tab, int h, K k, V v)585 java.util.HashMap.TreeNode<K, V> putTreeVal( 586 java.util.HashMap<K, V> map, java.util.HashMap.Node<K, V>[] tab, int h, K k, V v) { 587 throw new RuntimeException("Stub!"); 588 } 589 removeTreeNode( java.util.HashMap<K, V> map, java.util.HashMap.Node<K, V>[] tab, boolean movable)590 void removeTreeNode( 591 java.util.HashMap<K, V> map, java.util.HashMap.Node<K, V>[] tab, boolean movable) { 592 throw new RuntimeException("Stub!"); 593 } 594 split( java.util.HashMap<K, V> map, java.util.HashMap.Node<K, V>[] tab, int index, int bit)595 void split( 596 java.util.HashMap<K, V> map, 597 java.util.HashMap.Node<K, V>[] tab, 598 int index, 599 int bit) { 600 throw new RuntimeException("Stub!"); 601 } 602 rotateLeft( java.util.HashMap.TreeNode<K, V> root, java.util.HashMap.TreeNode<K, V> p)603 static <K, V> java.util.HashMap.TreeNode<K, V> rotateLeft( 604 java.util.HashMap.TreeNode<K, V> root, java.util.HashMap.TreeNode<K, V> p) { 605 throw new RuntimeException("Stub!"); 606 } 607 rotateRight( java.util.HashMap.TreeNode<K, V> root, java.util.HashMap.TreeNode<K, V> p)608 static <K, V> java.util.HashMap.TreeNode<K, V> rotateRight( 609 java.util.HashMap.TreeNode<K, V> root, java.util.HashMap.TreeNode<K, V> p) { 610 throw new RuntimeException("Stub!"); 611 } 612 balanceInsertion( java.util.HashMap.TreeNode<K, V> root, java.util.HashMap.TreeNode<K, V> x)613 static <K, V> java.util.HashMap.TreeNode<K, V> balanceInsertion( 614 java.util.HashMap.TreeNode<K, V> root, java.util.HashMap.TreeNode<K, V> x) { 615 throw new RuntimeException("Stub!"); 616 } 617 balanceDeletion( java.util.HashMap.TreeNode<K, V> root, java.util.HashMap.TreeNode<K, V> x)618 static <K, V> java.util.HashMap.TreeNode<K, V> balanceDeletion( 619 java.util.HashMap.TreeNode<K, V> root, java.util.HashMap.TreeNode<K, V> x) { 620 throw new RuntimeException("Stub!"); 621 } 622 checkInvariants(java.util.HashMap.TreeNode<K, V> t)623 static <K, V> boolean checkInvariants(java.util.HashMap.TreeNode<K, V> t) { 624 throw new RuntimeException("Stub!"); 625 } 626 627 java.util.HashMap.TreeNode<K, V> left; 628 629 java.util.HashMap.TreeNode<K, V> parent; 630 631 java.util.HashMap.TreeNode<K, V> prev; 632 633 boolean red; 634 635 java.util.HashMap.TreeNode<K, V> right; 636 } 637 638 @SuppressWarnings({"unchecked", "deprecation", "all"}) 639 final class ValueIterator extends java.util.HashMap.HashIterator 640 implements java.util.Iterator<V> { 641 next()642 public V next() { 643 throw new RuntimeException("Stub!"); 644 } 645 } 646 647 @SuppressWarnings({"unchecked", "deprecation", "all"}) 648 static final class ValueSpliterator<K, V> extends java.util.HashMap.HashMapSpliterator<K, V> 649 implements java.util.Spliterator<V> { 650 ValueSpliterator( java.util.HashMap<K, V> m, int origin, int fence, int est, int expectedModCount)651 ValueSpliterator( 652 java.util.HashMap<K, V> m, int origin, int fence, int est, int expectedModCount) { 653 super(null, 0, 0, 0, 0); 654 throw new RuntimeException("Stub!"); 655 } 656 trySplit()657 public java.util.HashMap.ValueSpliterator<K, V> trySplit() { 658 throw new RuntimeException("Stub!"); 659 } 660 forEachRemaining(java.util.function.Consumer<? super V> action)661 public void forEachRemaining(java.util.function.Consumer<? super V> action) { 662 throw new RuntimeException("Stub!"); 663 } 664 tryAdvance(java.util.function.Consumer<? super V> action)665 public boolean tryAdvance(java.util.function.Consumer<? super V> action) { 666 throw new RuntimeException("Stub!"); 667 } 668 characteristics()669 public int characteristics() { 670 throw new RuntimeException("Stub!"); 671 } 672 } 673 674 @SuppressWarnings({"unchecked", "deprecation", "all"}) 675 final class Values extends java.util.AbstractCollection<V> { 676 Values()677 Values() { 678 throw new RuntimeException("Stub!"); 679 } 680 size()681 public int size() { 682 throw new RuntimeException("Stub!"); 683 } 684 clear()685 public void clear() { 686 throw new RuntimeException("Stub!"); 687 } 688 iterator()689 public java.util.Iterator<V> iterator() { 690 throw new RuntimeException("Stub!"); 691 } 692 contains(java.lang.Object o)693 public boolean contains(java.lang.Object o) { 694 throw new RuntimeException("Stub!"); 695 } 696 spliterator()697 public java.util.Spliterator<V> spliterator() { 698 throw new RuntimeException("Stub!"); 699 } 700 forEach(java.util.function.Consumer<? super V> action)701 public void forEach(java.util.function.Consumer<? super V> action) { 702 throw new RuntimeException("Stub!"); 703 } 704 } 705 } 706