public enum Leisure extends java.lang.Enum<Leisure> implements MaybeArea, AmenityOrWay
| Enum Constant and Description |
|---|
common |
dance |
dog_park |
fishing |
garden |
golf_course |
ice_rink |
marina |
miniature_golf |
nature_reserve |
park |
pitch |
playground |
slipway |
sports_centre |
stadium |
swimming_pool |
track |
user_defined |
water_park |
| Modifier and Type | Method and Description |
|---|---|
AmenityType |
getAmenityType()
Get amenity type associated with this enumeration; only for types that are amenities.
|
boolean |
isArea()
Indicates whether this enum type implies an area.
|
static Leisure |
value(java.lang.String name)
Get the enum value associated with the string name specified.
|
static Leisure |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Leisure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
WayType |
wayType()
Report the WayType for rendering this type of Way.
|
public static final Leisure user_defined
public static final Leisure dog_park
public static final Leisure sports_centre
public static final Leisure golf_course
public static final Leisure stadium
public static final Leisure track
public static final Leisure pitch
public static final Leisure water_park
public static final Leisure marina
public static final Leisure slipway
public static final Leisure fishing
public static final Leisure nature_reserve
public static final Leisure park
public static final Leisure playground
public static final Leisure garden
public static final Leisure common
public static final Leisure ice_rink
public static final Leisure miniature_golf
public static final Leisure dance
public static final Leisure swimming_pool
public static Leisure[] values()
for (Leisure c : Leisure.values()) System.out.println(c);
public static Leisure 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 WayType wayType()
wayType in interface AmenityOrWaypublic AmenityType getAmenityType()
getAmenityType in interface AmenityOrWaypublic static Leisure value(java.lang.String name)
name - String to convert into an Enum