Modifier and Type | Method and Description |
---|---|
static java.util.Optional<Family> |
getByName(java.lang.String name) |
static Family |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Family[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Family SOLID
public static final Family REGULAR
public static final Family BRAND
public static Family[] values()
for (Family c : Family.values()) System.out.println(c);
public static Family 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 static java.util.Optional<Family> getByName(java.lang.String name)