public enum RouteType extends Enum<RouteType> implements HasName
| Enum Constant and Description |
|---|
BASIC
A basic route.
|
PLAN
A route with a plan of the time/distance it is expected to take from stop to stop.
|
SERVICE
A route with a plan with completion criteria.
|
| Modifier and Type | Method and Description |
|---|---|
static RouteType |
findOrDefault(String name) |
int |
getCode() |
String |
getName() |
static RouteType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RouteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RouteType PLAN
Device associated.public static RouteType[] values()
for (RouteType c : RouteType.values()) System.out.println(c);
public static RouteType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
Copyright © 2023. All rights reserved.