public enum Category extends java.lang.Enum<Category> implements IZITravelEnumeration
| Enum Constant and Description |
|---|
Bike
Tour on a bike (avg.
|
Boat
Tour on a boat (avg.
|
Bus
Tour on a bus (avg.
|
Car
Tour in a car (avg.
|
Walk
Walking tour (avg.
|
| Modifier and Type | Method and Description |
|---|---|
static Category |
fromValue(java.lang.String value) |
java.lang.String |
toString() |
static Category |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Category[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Category Walk
public static final Category Bike
public static final Category Bus
public static final Category Car
public static final Category Boat
public static Category[] values()
for (Category c : Category.values()) System.out.println(c);
public static Category 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 java.lang.String toString()
toString in class java.lang.Enum<Category>public static Category fromValue(java.lang.String value)