public static enum PoiInfo.POITYPE extends java.lang.Enum<PoiInfo.POITYPE>
| Enum Constant and Description |
|---|
BUS_LINE |
BUS_STATION |
POINT |
SUBWAY_LINE |
SUBWAY_STATION |
| Modifier and Type | Method and Description |
|---|---|
static PoiInfo.POITYPE |
fromInt(int type)
通过int值构造枚举对象
|
int |
getInt()
获取该枚举对象的 int 值
|
static PoiInfo.POITYPE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PoiInfo.POITYPE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PoiInfo.POITYPE POINT
public static final PoiInfo.POITYPE BUS_STATION
public static final PoiInfo.POITYPE BUS_LINE
public static final PoiInfo.POITYPE SUBWAY_STATION
public static final PoiInfo.POITYPE SUBWAY_LINE
public static PoiInfo.POITYPE[] values()
for (PoiInfo.POITYPE c : PoiInfo.POITYPE.values()) System.out.println(c);
public static PoiInfo.POITYPE valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getInt()
public static PoiInfo.POITYPE fromInt(int type)
type - int值