@UnstableApi public final class EnumInfo extends Object implements NamedTypeInfo
| Constructor and Description |
|---|
EnumInfo(Class<? extends Enum<?>> enumType)
Creates a new instance.
|
EnumInfo(Class<? extends Enum<?>> enumType,
String docString)
Creates a new instance.
|
EnumInfo(String name,
Class<? extends Enum<?>> enumType)
Creates a new instance.
|
EnumInfo(String name,
Class<? extends Enum<?>> enumType,
String docString)
Creates a new instance.
|
EnumInfo(String name,
Iterable<EnumValueInfo> values)
Creates a new instance.
|
EnumInfo(String name,
Iterable<EnumValueInfo> values,
String docString)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
docString()
Returns the documentation string.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
name()
Returns the fully qualified type name.
|
String |
toString() |
List<EnumValueInfo> |
values()
Returns the constant values defined by the type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfindNamedTypespublic EnumInfo(Class<? extends Enum<?>> enumType, String docString)
public EnumInfo(String name, Class<? extends Enum<?>> enumType, String docString)
public EnumInfo(String name, Iterable<EnumValueInfo> values)
public EnumInfo(String name, Iterable<EnumValueInfo> values, String docString)
public String name()
NamedTypeInfoname in interface NamedTypeInfopublic List<EnumValueInfo> values()
public String docString()
NamedTypeInfodocString in interface NamedTypeInfoCopyright © 2020 LeanCloud. All rights reserved.