Package org.geonames
Enum FeatureClass
- java.lang.Object
-
- java.lang.Enum<FeatureClass>
-
- org.geonames.FeatureClass
-
- All Implemented Interfaces:
Serializable
,Comparable<FeatureClass>
public enum FeatureClass extends Enum<FeatureClass>
Enumeration for the GeoNames feature classes A,H,L,P,R,S,T,U,V- Author:
- marc
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FeatureClass
fromValue(String value)
static FeatureClass
valueOf(String name)
Returns the enum constant of this type with the specified name.static FeatureClass[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A
public static final FeatureClass A
Administrative Boundary Features
-
H
public static final FeatureClass H
Hydrographic Features
-
L
public static final FeatureClass L
Area Features
-
P
public static final FeatureClass P
Populated Place Features
-
R
public static final FeatureClass R
Road / Railroad Features
-
S
public static final FeatureClass S
Spot Features
-
T
public static final FeatureClass T
Hypsographic Features
-
U
public static final FeatureClass U
Undersea Features
-
V
public static final FeatureClass V
Vegetation Features
-
-
Method Detail
-
values
public static FeatureClass[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FeatureClass c : FeatureClass.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FeatureClass valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromValue
public static FeatureClass fromValue(String value)
-
-