public enum MapScaleEnum extends Enum<MapScaleEnum> implements NamedEnum
Modifier and Type | Method and Description |
---|---|
static MapScaleEnum |
getByName(String name) |
String |
getName() |
static MapScaleEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MapScaleEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapScaleEnum ONE
public static final MapScaleEnum TWO
public static final MapScaleEnum FOUR
public static MapScaleEnum[] values()
for (MapScaleEnum c : MapScaleEnum.values()) System.out.println(c);
public static MapScaleEnum 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 MapScaleEnum getByName(String name)
Copyright © 2016. All rights reserved.