public static enum DatabaseTest.Gender extends Enum<DatabaseTest.Gender>
Modifier and Type | Method and Description |
---|---|
static DatabaseTest.Gender |
fromCode(String code) |
static DatabaseTest.Gender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseTest.Gender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseTest.Gender MALE
public static final DatabaseTest.Gender FEMALE
public static final DatabaseTest.Gender OTHER
public static DatabaseTest.Gender[] values()
for (DatabaseTest.Gender c : DatabaseTest.Gender.values()) System.out.println(c);
public static DatabaseTest.Gender 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 static DatabaseTest.Gender fromCode(String code)
Copyright © 2022–2023. All rights reserved.