public enum TransportationNetworkCompany extends Enum<TransportationNetworkCompany>
Modifier and Type | Method and Description |
---|---|
static TransportationNetworkCompany |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransportationNetworkCompany[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransportationNetworkCompany LYFT
public static final TransportationNetworkCompany NOAPI
public static final TransportationNetworkCompany UBER
public static TransportationNetworkCompany[] values()
for (TransportationNetworkCompany c : TransportationNetworkCompany.values()) System.out.println(c);
public static TransportationNetworkCompany 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 nullCopyright © 2020. All rights reserved.