1 /* 2 * Copyright (c) 1994, 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 android.compat.annotation.UnsupportedAppUsage; 29 30 @SuppressWarnings({"unchecked", "deprecation", "all"}) 31 public class Vector<E> extends java.util.AbstractList<E> 32 implements java.util.List<E>, 33 java.util.RandomAccess, 34 java.lang.Cloneable, 35 java.io.Serializable { 36 Vector(int initialCapacity, int capacityIncrement)37 public Vector(int initialCapacity, int capacityIncrement) { 38 throw new RuntimeException("Stub!"); 39 } 40 Vector(int initialCapacity)41 public Vector(int initialCapacity) { 42 throw new RuntimeException("Stub!"); 43 } 44 Vector()45 public Vector() { 46 throw new RuntimeException("Stub!"); 47 } 48 Vector(java.util.Collection<? extends E> c)49 public Vector(java.util.Collection<? extends E> c) { 50 throw new RuntimeException("Stub!"); 51 } 52 copyInto(java.lang.Object[] anArray)53 public synchronized void copyInto(java.lang.Object[] anArray) { 54 throw new RuntimeException("Stub!"); 55 } 56 trimToSize()57 public synchronized void trimToSize() { 58 throw new RuntimeException("Stub!"); 59 } 60 ensureCapacity(int minCapacity)61 public synchronized void ensureCapacity(int minCapacity) { 62 throw new RuntimeException("Stub!"); 63 } 64 ensureCapacityHelper(int minCapacity)65 private void ensureCapacityHelper(int minCapacity) { 66 throw new RuntimeException("Stub!"); 67 } 68 grow(int minCapacity)69 private void grow(int minCapacity) { 70 throw new RuntimeException("Stub!"); 71 } 72 hugeCapacity(int minCapacity)73 private static int hugeCapacity(int minCapacity) { 74 throw new RuntimeException("Stub!"); 75 } 76 setSize(int newSize)77 public synchronized void setSize(int newSize) { 78 throw new RuntimeException("Stub!"); 79 } 80 capacity()81 public synchronized int capacity() { 82 throw new RuntimeException("Stub!"); 83 } 84 size()85 public synchronized int size() { 86 throw new RuntimeException("Stub!"); 87 } 88 isEmpty()89 public synchronized boolean isEmpty() { 90 throw new RuntimeException("Stub!"); 91 } 92 elements()93 public java.util.Enumeration<E> elements() { 94 throw new RuntimeException("Stub!"); 95 } 96 contains(java.lang.Object o)97 public boolean contains(java.lang.Object o) { 98 throw new RuntimeException("Stub!"); 99 } 100 indexOf(java.lang.Object o)101 public int indexOf(java.lang.Object o) { 102 throw new RuntimeException("Stub!"); 103 } 104 indexOf(java.lang.Object o, int index)105 public synchronized int indexOf(java.lang.Object o, int index) { 106 throw new RuntimeException("Stub!"); 107 } 108 lastIndexOf(java.lang.Object o)109 public synchronized int lastIndexOf(java.lang.Object o) { 110 throw new RuntimeException("Stub!"); 111 } 112 lastIndexOf(java.lang.Object o, int index)113 public synchronized int lastIndexOf(java.lang.Object o, int index) { 114 throw new RuntimeException("Stub!"); 115 } 116 elementAt(int index)117 public synchronized E elementAt(int index) { 118 throw new RuntimeException("Stub!"); 119 } 120 firstElement()121 public synchronized E firstElement() { 122 throw new RuntimeException("Stub!"); 123 } 124 lastElement()125 public synchronized E lastElement() { 126 throw new RuntimeException("Stub!"); 127 } 128 setElementAt(E obj, int index)129 public synchronized void setElementAt(E obj, int index) { 130 throw new RuntimeException("Stub!"); 131 } 132 removeElementAt(int index)133 public synchronized void removeElementAt(int index) { 134 throw new RuntimeException("Stub!"); 135 } 136 insertElementAt(E obj, int index)137 public synchronized void insertElementAt(E obj, int index) { 138 throw new RuntimeException("Stub!"); 139 } 140 addElement(E obj)141 public synchronized void addElement(E obj) { 142 throw new RuntimeException("Stub!"); 143 } 144 removeElement(java.lang.Object obj)145 public synchronized boolean removeElement(java.lang.Object obj) { 146 throw new RuntimeException("Stub!"); 147 } 148 removeAllElements()149 public synchronized void removeAllElements() { 150 throw new RuntimeException("Stub!"); 151 } 152 clone()153 public synchronized java.lang.Object clone() { 154 throw new RuntimeException("Stub!"); 155 } 156 toArray()157 public synchronized java.lang.Object[] toArray() { 158 throw new RuntimeException("Stub!"); 159 } 160 toArray(T[] a)161 public synchronized <T> T[] toArray(T[] a) { 162 throw new RuntimeException("Stub!"); 163 } 164 165 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) elementData(int index)166 E elementData(int index) { 167 throw new RuntimeException("Stub!"); 168 } 169 get(int index)170 public synchronized E get(int index) { 171 throw new RuntimeException("Stub!"); 172 } 173 set(int index, E element)174 public synchronized E set(int index, E element) { 175 throw new RuntimeException("Stub!"); 176 } 177 add(E e)178 public synchronized boolean add(E e) { 179 throw new RuntimeException("Stub!"); 180 } 181 remove(java.lang.Object o)182 public boolean remove(java.lang.Object o) { 183 throw new RuntimeException("Stub!"); 184 } 185 add(int index, E element)186 public void add(int index, E element) { 187 throw new RuntimeException("Stub!"); 188 } 189 remove(int index)190 public synchronized E remove(int index) { 191 throw new RuntimeException("Stub!"); 192 } 193 clear()194 public void clear() { 195 throw new RuntimeException("Stub!"); 196 } 197 containsAll(java.util.Collection<?> c)198 public synchronized boolean containsAll(java.util.Collection<?> c) { 199 throw new RuntimeException("Stub!"); 200 } 201 addAll(java.util.Collection<? extends E> c)202 public synchronized boolean addAll(java.util.Collection<? extends E> c) { 203 throw new RuntimeException("Stub!"); 204 } 205 removeAll(java.util.Collection<?> c)206 public synchronized boolean removeAll(java.util.Collection<?> c) { 207 throw new RuntimeException("Stub!"); 208 } 209 retainAll(java.util.Collection<?> c)210 public synchronized boolean retainAll(java.util.Collection<?> c) { 211 throw new RuntimeException("Stub!"); 212 } 213 addAll(int index, java.util.Collection<? extends E> c)214 public synchronized boolean addAll(int index, java.util.Collection<? extends E> c) { 215 throw new RuntimeException("Stub!"); 216 } 217 equals(java.lang.Object o)218 public synchronized boolean equals(java.lang.Object o) { 219 throw new RuntimeException("Stub!"); 220 } 221 hashCode()222 public synchronized int hashCode() { 223 throw new RuntimeException("Stub!"); 224 } 225 toString()226 public synchronized java.lang.String toString() { 227 throw new RuntimeException("Stub!"); 228 } 229 subList(int fromIndex, int toIndex)230 public synchronized java.util.List<E> subList(int fromIndex, int toIndex) { 231 throw new RuntimeException("Stub!"); 232 } 233 removeRange(int fromIndex, int toIndex)234 protected synchronized void removeRange(int fromIndex, int toIndex) { 235 throw new RuntimeException("Stub!"); 236 } 237 writeObject(java.io.ObjectOutputStream s)238 private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { 239 throw new RuntimeException("Stub!"); 240 } 241 listIterator(int index)242 public synchronized java.util.ListIterator<E> listIterator(int index) { 243 throw new RuntimeException("Stub!"); 244 } 245 listIterator()246 public synchronized java.util.ListIterator<E> listIterator() { 247 throw new RuntimeException("Stub!"); 248 } 249 iterator()250 public synchronized java.util.Iterator<E> iterator() { 251 throw new RuntimeException("Stub!"); 252 } 253 forEach(java.util.function.Consumer<? super E> action)254 public synchronized void forEach(java.util.function.Consumer<? super E> action) { 255 throw new RuntimeException("Stub!"); 256 } 257 removeIf(java.util.function.Predicate<? super E> filter)258 public synchronized boolean removeIf(java.util.function.Predicate<? super E> filter) { 259 throw new RuntimeException("Stub!"); 260 } 261 replaceAll(java.util.function.UnaryOperator<E> operator)262 public synchronized void replaceAll(java.util.function.UnaryOperator<E> operator) { 263 throw new RuntimeException("Stub!"); 264 } 265 sort(java.util.Comparator<? super E> c)266 public synchronized void sort(java.util.Comparator<? super E> c) { 267 throw new RuntimeException("Stub!"); 268 } 269 spliterator()270 public java.util.Spliterator<E> spliterator() { 271 throw new RuntimeException("Stub!"); 272 } 273 274 private static final int MAX_ARRAY_SIZE = 2147483639; // 0x7ffffff7 275 276 protected int capacityIncrement; 277 278 protected int elementCount; 279 280 protected java.lang.Object[] elementData; 281 282 private static final long serialVersionUID = -2767605614048989439L; // 0xd9977d5b803baf01L 283 284 @SuppressWarnings({"unchecked", "deprecation", "all"}) 285 private class Itr implements java.util.Iterator<E> { 286 Itr()287 private Itr() { 288 throw new RuntimeException("Stub!"); 289 } 290 hasNext()291 public boolean hasNext() { 292 throw new RuntimeException("Stub!"); 293 } 294 next()295 public E next() { 296 throw new RuntimeException("Stub!"); 297 } 298 remove()299 public void remove() { 300 throw new RuntimeException("Stub!"); 301 } 302 forEachRemaining(java.util.function.Consumer<? super E> action)303 public void forEachRemaining(java.util.function.Consumer<? super E> action) { 304 throw new RuntimeException("Stub!"); 305 } 306 checkForComodification()307 final void checkForComodification() { 308 throw new RuntimeException("Stub!"); 309 } 310 311 int cursor; 312 313 int expectedModCount; 314 315 int lastRet = -1; // 0xffffffff 316 317 protected int limit; 318 } 319 320 @SuppressWarnings({"unchecked", "deprecation", "all"}) 321 final class ListItr extends Itr implements java.util.ListIterator<E> { 322 ListItr(int index)323 ListItr(int index) { 324 throw new RuntimeException("Stub!"); 325 } 326 hasPrevious()327 public boolean hasPrevious() { 328 throw new RuntimeException("Stub!"); 329 } 330 nextIndex()331 public int nextIndex() { 332 throw new RuntimeException("Stub!"); 333 } 334 previousIndex()335 public int previousIndex() { 336 throw new RuntimeException("Stub!"); 337 } 338 previous()339 public E previous() { 340 throw new RuntimeException("Stub!"); 341 } 342 set(E e)343 public void set(E e) { 344 throw new RuntimeException("Stub!"); 345 } 346 add(E e)347 public void add(E e) { 348 throw new RuntimeException("Stub!"); 349 } 350 } 351 352 @SuppressWarnings({"unchecked", "deprecation", "all"}) 353 static final class VectorSpliterator<E> implements java.util.Spliterator<E> { 354 VectorSpliterator( java.util.Vector<E> list, java.lang.Object[] array, int origin, int fence, int expectedModCount)355 VectorSpliterator( 356 java.util.Vector<E> list, 357 java.lang.Object[] array, 358 int origin, 359 int fence, 360 int expectedModCount) { 361 throw new RuntimeException("Stub!"); 362 } 363 getFence()364 private int getFence() { 365 throw new RuntimeException("Stub!"); 366 } 367 trySplit()368 public java.util.Spliterator<E> trySplit() { 369 throw new RuntimeException("Stub!"); 370 } 371 tryAdvance(java.util.function.Consumer<? super E> action)372 public boolean tryAdvance(java.util.function.Consumer<? super E> action) { 373 throw new RuntimeException("Stub!"); 374 } 375 forEachRemaining(java.util.function.Consumer<? super E> action)376 public void forEachRemaining(java.util.function.Consumer<? super E> action) { 377 throw new RuntimeException("Stub!"); 378 } 379 estimateSize()380 public long estimateSize() { 381 throw new RuntimeException("Stub!"); 382 } 383 characteristics()384 public int characteristics() { 385 throw new RuntimeException("Stub!"); 386 } 387 388 private java.lang.Object[] array; 389 390 private int expectedModCount; 391 392 private int fence; 393 394 private int index; 395 396 private final java.util.Vector<E> list; 397 398 { 399 list = null; 400 } 401 } 402 } 403