/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang; import java.io.Serializable; public abstract class Enum> extends Object implements Comparable, Serializable { protected Enum(String name, int ordinal) { } native public final String name(); native public final int ordinal(); native public String toString(); native public final boolean equals(Object other); native public final int hashCode(); native protected final Object clone() throws CloneNotSupportedException; native public final int compareTo(E o); native public final Class getDeclaringClass(); native public static > T valueOf(Class enumType, String name); }