public enum CountType extends Enum<CountType>
| Enum Constant and Description |
|---|
COUNT_LIMIT
有限数量
|
COUNT_UNLIMITED
不限数量
|
| Modifier and Type | Method and Description |
|---|---|
static CountType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CountType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CountType COUNT_UNLIMITED
public static final CountType COUNT_LIMIT
public static CountType[] values()
for (CountType c : CountType.values()) System.out.println(c);
public static CountType 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 © 2023. All rights reserved.