public enum CompanyType extends Enum<CompanyType>
| Enum Constant and Description |
|---|
entrepreneur
Индивидуальный предприниматель
|
individual
Физическое лицо
|
legal
Юридическое лицо
|
| Modifier and Type | Method and Description |
|---|---|
static CompanyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompanyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompanyType legal
public static final CompanyType entrepreneur
public static final CompanyType individual
public static CompanyType[] values()
for (CompanyType c : CompanyType.values()) System.out.println(c);
public static CompanyType 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 nullCopyright © 2021. All rights reserved.