1 /* 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * 4 * This code is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License version 2 only, as 6 * published by the Free Software Foundation. Oracle designates this 7 * particular file as subject to the "Classpath" exception as provided 8 * by Oracle in the LICENSE file that accompanied this code. 9 * 10 * This code is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 * version 2 for more details (a copy is included in the LICENSE file that 14 * accompanied this code). 15 * 16 * You should have received a copy of the GNU General Public License version 17 * 2 along with this work; if not, write to the Free Software Foundation, 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 * 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21 * or visit www.oracle.com if you need additional information or have any 22 * questions. 23 */ 24 25 /* 26 * This file is available under and governed by the GNU General Public 27 * License version 2 only, as published by the Free Software Foundation. 28 * However, the following notice accompanied the original version of this 29 * file: 30 * 31 * Written by Doug Lea with assistance from members of JCP JSR-166 32 * Expert Group and released to the public domain, as explained at 33 * http://creativecommons.org/publicdomain/zero/1.0/ 34 */ 35 36 package java.util.concurrent; 37 38 import android.compat.annotation.UnsupportedAppUsage; 39 40 @SuppressWarnings({"unchecked", "deprecation", "all"}) 41 public class CopyOnWriteArraySet<E> extends java.util.AbstractSet<E> 42 implements java.io.Serializable { 43 CopyOnWriteArraySet()44 public CopyOnWriteArraySet() { 45 throw new RuntimeException("Stub!"); 46 } 47 CopyOnWriteArraySet(java.util.Collection<? extends E> c)48 public CopyOnWriteArraySet(java.util.Collection<? extends E> c) { 49 throw new RuntimeException("Stub!"); 50 } 51 size()52 public int size() { 53 throw new RuntimeException("Stub!"); 54 } 55 isEmpty()56 public boolean isEmpty() { 57 throw new RuntimeException("Stub!"); 58 } 59 contains(java.lang.Object o)60 public boolean contains(java.lang.Object o) { 61 throw new RuntimeException("Stub!"); 62 } 63 toArray()64 public java.lang.Object[] toArray() { 65 throw new RuntimeException("Stub!"); 66 } 67 toArray(T[] a)68 public <T> T[] toArray(T[] a) { 69 throw new RuntimeException("Stub!"); 70 } 71 clear()72 public void clear() { 73 throw new RuntimeException("Stub!"); 74 } 75 remove(java.lang.Object o)76 public boolean remove(java.lang.Object o) { 77 throw new RuntimeException("Stub!"); 78 } 79 add(E e)80 public boolean add(E e) { 81 throw new RuntimeException("Stub!"); 82 } 83 containsAll(java.util.Collection<?> c)84 public boolean containsAll(java.util.Collection<?> c) { 85 throw new RuntimeException("Stub!"); 86 } 87 compareSets(java.lang.Object[] snapshot, java.util.Set<?> set)88 private static int compareSets(java.lang.Object[] snapshot, java.util.Set<?> set) { 89 throw new RuntimeException("Stub!"); 90 } 91 addAll(java.util.Collection<? extends E> c)92 public boolean addAll(java.util.Collection<? extends E> c) { 93 throw new RuntimeException("Stub!"); 94 } 95 removeAll(java.util.Collection<?> c)96 public boolean removeAll(java.util.Collection<?> c) { 97 throw new RuntimeException("Stub!"); 98 } 99 retainAll(java.util.Collection<?> c)100 public boolean retainAll(java.util.Collection<?> c) { 101 throw new RuntimeException("Stub!"); 102 } 103 iterator()104 public java.util.Iterator<E> iterator() { 105 throw new RuntimeException("Stub!"); 106 } 107 equals(java.lang.Object o)108 public boolean equals(java.lang.Object o) { 109 throw new RuntimeException("Stub!"); 110 } 111 removeIf(java.util.function.Predicate<? super E> filter)112 public boolean removeIf(java.util.function.Predicate<? super E> filter) { 113 throw new RuntimeException("Stub!"); 114 } 115 forEach(java.util.function.Consumer<? super E> action)116 public void forEach(java.util.function.Consumer<? super E> action) { 117 throw new RuntimeException("Stub!"); 118 } 119 spliterator()120 public java.util.Spliterator<E> spliterator() { 121 throw new RuntimeException("Stub!"); 122 } 123 124 @UnsupportedAppUsage 125 private final java.util.concurrent.CopyOnWriteArrayList<E> al; 126 127 { 128 al = null; 129 } 130 131 private static final long serialVersionUID = 5457747651344034263L; // 0x4bbdd092901569d7L 132 } 133