E
- @JsType public abstract class Enum<E extends Enum<E>> extends Object implements Comparable<E>, Serializable
Modifier | Constructor and Description |
---|---|
protected |
Enum(String name,
int ordinal) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(E other) |
protected static <T extends Enum<T>> |
createValueOfMap(T[] enumConstants) |
boolean |
equals(Object other) |
Class<E> |
getDeclaringClass() |
int |
hashCode() |
String |
name() |
int |
ordinal() |
String |
toString() |
static <T extends Enum<T>> |
valueOf(Class<T> enumType,
String name) |
protected static <T extends Enum<T>> |
valueOf(JavaScriptObject map,
String name) |
$isInstance
protected Enum(String name, int ordinal)
protected static <T extends Enum<T>> JavaScriptObject createValueOfMap(T[] enumConstants)
protected static <T extends Enum<T>> T valueOf(JavaScriptObject map, String name)
public final int compareTo(E other)
compareTo
in interface Comparable<E extends Enum<E>>
public final String name()
public final int ordinal()
Copyright © 2018. All rights reserved.