public enum Brands extends Enum<Brands>
Brands is an enum intended for use in unit tests and holds some brands from
famous cars.| Enum Constant and Description |
|---|
FERRARI
The ferrari.
|
LAMBORGINI
The lamborgini.
|
MASERATI
The maserati.
|
PORSCHE
The porsche.
|
| Modifier and Type | Method and Description |
|---|---|
static Brands |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Brands[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Brands LAMBORGINI
public static final Brands MASERATI
public static final Brands FERRARI
public static final Brands PORSCHE
public static Brands[] values()
for (Brands c : Brands.values()) System.out.println(c);
public static Brands 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 © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.