Package org.heigit.ohsome.oshdb.osm
Enum OSMType
- java.lang.Object
-
- java.lang.Enum<OSMType>
-
- org.heigit.ohsome.oshdb.osm.OSMType
-
- All Implemented Interfaces:
Serializable
,Comparable<OSMType>
public enum OSMType extends Enum<OSMType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OSMType
fromInt(int value)
Returns anOSMType
instance represented by the given integer value (0-2), or throws an exception otherwise.int
intValue()
String
toString()
static OSMType
valueOf(String name)
Returns the enum constant of this type with the specified name.static OSMType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static OSMType[] 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 (OSMType c : OSMType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OSMType 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
-
fromInt
public static OSMType fromInt(int value)
Returns anOSMType
instance represented by the given integer value (0-2), or throws an exception otherwise.
-
intValue
public final int intValue()
-
-