public enum Brands extends Enum<Brands>
| Enum Constant and Description |
|---|
FERRARI |
LAMBORGINI |
MASERATI |
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 © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.