public enum NameTypeEnum extends Enum<NameTypeEnum>
| Enum Constant and Description |
|---|
ABSTRACT
An abstract name class
|
STRUCTURAL
A structural name class is an actual name implementation.
|
| Modifier and Type | Method and Description |
|---|---|
static NameTypeEnum |
get(int code)
Returns the enum value of the specified int or null if it's not valid.
|
static NameTypeEnum |
get(String str)
Returns a value for this enum or throws an exception if the String value isn't
a valid member of this enum.
|
int |
intValue()
Returns the value of this enum value as an int.
|
static NameTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NameTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NameTypeEnum ABSTRACT
public static final NameTypeEnum STRUCTURAL
public static NameTypeEnum[] values()
for (NameTypeEnum c : NameTypeEnum.values()) System.out.println(c);
public static NameTypeEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int intValue()
public static NameTypeEnum get(int code)
public static NameTypeEnum get(String str)
Copyright © 2023. All rights reserved.