1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5 * 6 * This code is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 only, as 8 * published by the Free Software Foundation. Oracle designates this 9 * particular file as subject to the "Classpath" exception as provided 10 * by Oracle in the LICENSE file that accompanied this code. 11 * 12 * This code is distributed in the hope that it will be useful, but WITHOUT 13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15 * version 2 for more details (a copy is included in the LICENSE file that 16 * accompanied this code). 17 * 18 * You should have received a copy of the GNU General Public License version 19 * 2 along with this work; if not, write to the Free Software Foundation, 20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 21 * 22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 23 * or visit www.oracle.com if you need additional information or have any 24 * questions. 25 */ 26 27 package java.util; 28 29 import dalvik.annotation.compat.UnsupportedAppUsage; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 public abstract class EnumSet<E extends java.lang.Enum<E>> extends java.util.AbstractSet<E> 33 implements java.lang.Cloneable, java.io.Serializable { 34 EnumSet(java.lang.Class<E> elementType, java.lang.Enum<?>[] universe)35 EnumSet(java.lang.Class<E> elementType, java.lang.Enum<?>[] universe) { 36 throw new RuntimeException("Stub!"); 37 } 38 noneOf( java.lang.Class<E> elementType)39 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> noneOf( 40 java.lang.Class<E> elementType) { 41 throw new RuntimeException("Stub!"); 42 } 43 allOf( java.lang.Class<E> elementType)44 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> allOf( 45 java.lang.Class<E> elementType) { 46 throw new RuntimeException("Stub!"); 47 } 48 addAll()49 abstract void addAll(); 50 copyOf( java.util.EnumSet<E> s)51 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> copyOf( 52 java.util.EnumSet<E> s) { 53 throw new RuntimeException("Stub!"); 54 } 55 copyOf( java.util.Collection<E> c)56 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> copyOf( 57 java.util.Collection<E> c) { 58 throw new RuntimeException("Stub!"); 59 } 60 complementOf( java.util.EnumSet<E> s)61 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> complementOf( 62 java.util.EnumSet<E> s) { 63 throw new RuntimeException("Stub!"); 64 } 65 of(E e)66 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e) { 67 throw new RuntimeException("Stub!"); 68 } 69 of(E e1, E e2)70 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e1, E e2) { 71 throw new RuntimeException("Stub!"); 72 } 73 of(E e1, E e2, E e3)74 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e1, E e2, E e3) { 75 throw new RuntimeException("Stub!"); 76 } 77 of(E e1, E e2, E e3, E e4)78 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e1, E e2, E e3, E e4) { 79 throw new RuntimeException("Stub!"); 80 } 81 of( E e1, E e2, E e3, E e4, E e5)82 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of( 83 E e1, E e2, E e3, E e4, E e5) { 84 throw new RuntimeException("Stub!"); 85 } 86 of(E first, E... rest)87 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E first, E... rest) { 88 throw new RuntimeException("Stub!"); 89 } 90 range(E from, E to)91 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> range(E from, E to) { 92 throw new RuntimeException("Stub!"); 93 } 94 addRange(E from, E to)95 abstract void addRange(E from, E to); 96 clone()97 public java.util.EnumSet<E> clone() { 98 throw new RuntimeException("Stub!"); 99 } 100 complement()101 abstract void complement(); 102 typeCheck(E e)103 final void typeCheck(E e) { 104 throw new RuntimeException("Stub!"); 105 } 106 getUniverse(java.lang.Class<E> elementType)107 private static <E extends java.lang.Enum<E>> E[] getUniverse(java.lang.Class<E> elementType) { 108 throw new RuntimeException("Stub!"); 109 } 110 writeReplace()111 java.lang.Object writeReplace() { 112 throw new RuntimeException("Stub!"); 113 } 114 readObject(java.io.ObjectInputStream stream)115 private void readObject(java.io.ObjectInputStream stream) 116 throws java.io.InvalidObjectException { 117 throw new RuntimeException("Stub!"); 118 } 119 120 private static java.lang.Enum<?>[] ZERO_LENGTH_ENUM_ARRAY; 121 122 @UnsupportedAppUsage 123 final java.lang.Class<E> elementType; 124 125 { 126 elementType = null; 127 } 128 129 final java.lang.Enum<?>[] universe; 130 131 { 132 universe = new java.lang.Enum[0]; 133 } 134 135 @SuppressWarnings({"unchecked", "deprecation", "all"}) 136 private static class SerializationProxy<E extends java.lang.Enum<E>> 137 implements java.io.Serializable { 138 SerializationProxy(java.util.EnumSet<E> set)139 SerializationProxy(java.util.EnumSet<E> set) { 140 throw new RuntimeException("Stub!"); 141 } 142 readResolve()143 private java.lang.Object readResolve() { 144 throw new RuntimeException("Stub!"); 145 } 146 147 private final java.lang.Class<E> elementType; 148 149 { 150 elementType = null; 151 } 152 153 private final java.lang.Enum<?>[] elements; 154 155 { 156 elements = new java.lang.Enum[0]; 157 } 158 159 private static final long serialVersionUID = 362491234563181265L; // 0x507d3db7654cad1L 160 } 161 } 162