| Enum Constant and Description |
|---|
BOOK |
PHOTO_ITEM |
PORTFOLIO |
| Modifier and Type | Method and Description |
|---|---|
static PhotoType |
from(int id) |
static PhotoType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PhotoType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhotoType PORTFOLIO
public static final PhotoType PHOTO_ITEM
public static final PhotoType BOOK
public static PhotoType[] values()
for (PhotoType c : PhotoType.values()) System.out.println(c);
public static PhotoType 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 PhotoType from(int id)