public enum MaxOrMinEnum extends Enum<MaxOrMinEnum>
Modifier and Type | Method and Description |
---|---|
static MaxOrMinEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaxOrMinEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaxOrMinEnum MAX
public static final MaxOrMinEnum MIN
public static MaxOrMinEnum[] values()
for (MaxOrMinEnum c : MaxOrMinEnum.values()) System.out.println(c);
public static MaxOrMinEnum 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 © 2022 Pivotal Software, Inc.. All rights reserved.