1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 2003, 2011, 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 
28 package java.lang;
29 
30 
31 @SuppressWarnings({"unchecked", "deprecation", "all"})
32 public abstract class Enum<E extends java.lang.Enum<E>> implements java.lang.Comparable<E>, java.io.Serializable {
33 
Enum(@ibcore.util.NonNull java.lang.String name, int ordinal)34 protected Enum(@libcore.util.NonNull java.lang.String name, int ordinal) { throw new RuntimeException("Stub!"); }
35 
name()36 @libcore.util.NonNull public final java.lang.String name() { throw new RuntimeException("Stub!"); }
37 
ordinal()38 public final int ordinal() { throw new RuntimeException("Stub!"); }
39 
toString()40 @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
41 
equals(@ibcore.util.Nullable java.lang.Object other)42 public final boolean equals(@libcore.util.Nullable java.lang.Object other) { throw new RuntimeException("Stub!"); }
43 
hashCode()44 public final int hashCode() { throw new RuntimeException("Stub!"); }
45 
clone()46 @libcore.util.NonNull protected final java.lang.Object clone() throws java.lang.CloneNotSupportedException { throw new RuntimeException("Stub!"); }
47 
compareTo(@ibcore.util.NullFromTypeParam E o)48 public final int compareTo(@libcore.util.NullFromTypeParam E o) { throw new RuntimeException("Stub!"); }
49 
getDeclaringClass()50 @libcore.util.NonNull public final java.lang.Class<E> getDeclaringClass() { throw new RuntimeException("Stub!"); }
51 
valueOf(@ibcore.util.NonNull java.lang.Class<T> enumType, @libcore.util.NonNull java.lang.String name)52 @libcore.util.NonNull public static <T extends java.lang.Enum<T>> T valueOf(@libcore.util.NonNull java.lang.Class<T> enumType, @libcore.util.NonNull java.lang.String name) { throw new RuntimeException("Stub!"); }
53 
finalize()54 protected final void finalize() { throw new RuntimeException("Stub!"); }
55 }
56